Port Krita to SIP6 and newer PyQt
Closed, ResolvedPublic

Description

Here is a manual on building PyQt 5.14.4 with sip6 on Windows with MinGW:

  1. Download PyQt-builder 1.10.0 from here (as zip file): https://www.riverbankcomputing.com/hg/PyQt-builder/file/b48ea1df701b
  2. 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
  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
  1. Download PyQt 5.15.4 from here: https://pypi.org/project/PyQt5/#files
  1. Build it with sip: sip-build
dkazakov created this task.May 18 2021, 8:29 AM
dkazakov added a project: Krita.
dkazakov added a subscriber: lsegovia.
lsegovia closed this task as Resolved.Aug 19 2021, 11:25 PM
lsegovia claimed this task.