Here is a manual on building PyQt 5.14.4 with sip6 on Windows with MinGW:
- Download PyQt-builder 1.10.0 from here (as zip file): https://www.riverbankcomputing.com/hg/PyQt-builder/file/b48ea1df701b
- Apply this patch to it:
From 81468a86454f4353c6b9d1c291300864ea049dfc Mon Sep 17 00:00:00 2001 From: Dmitry Kazakov <dimula73@gmail.com> Date: Tue, 18 May 2021 11:14:44 +0300 Subject: [PATCH] Fix linking to Python3.8 on Windows --- pyqtbuild/builder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyqtbuild/builder.py b/pyqtbuild/builder.py index 6cd01b9..fc4bc4a 100644 --- a/pyqtbuild/builder.py +++ b/pyqtbuild/builder.py @@ -459,7 +459,7 @@ macx { # TODO: is this still necessary for Python v3.8? if not buildable.static: pro_lines.extend(['win32 {', - ' LIBS += -L{}'.format( + ' LIBS += -L{} -lpython38'.format( self.qmake_quote(project.py_pylib_dir)), '}']) -- 2.20.1.windows.1
- Install pyqt-builder into python root folder: python setup.py install
It should also automatically install sip6 from PyPI, if not, just do pip install sip
- Download PyQt 5.15.4 from here: https://pypi.org/project/PyQt5/#files
- Build it with sip: sip-build