qt5_includes
authorSVN-Git Migration <python-modules-team@lists.alioth.debian.org>
Thu, 8 Oct 2015 20:39:19 +0000 (13:39 -0700)
committerDmitry Shachnev <mitya57@debian.org>
Tue, 23 Jun 2020 09:55:57 +0000 (10:55 +0100)
When building for Qt5, the python extension needs QtWidgets and QtPrintSupport
because things moved there from QtGui in Qt4.  Sent upstream.

Patch-Name: qt5_includes.patch

Gbp-Pq: Name 0005-qt5_includes.patch

Python/configure.py

index 04b805458706e7d3166ddb551af297215363f9a8..d2a5bc96a399618cad19f0d9c6d64e904bd24fc0 100644 (file)
@@ -1612,6 +1612,9 @@ INSTALLS += sip
     if includepath:
         pro.write('INCLUDEPATH += %s\n' % includepath)
 
+    if target_config.pyqt_package == 'PyQt5':
+        pro.write('INCLUDEPATH += %s\n' % (target_config.qt_inc_dir + '/QtWidgets ' + target_config.qt_inc_dir + '/QtPrintSupport'))
+
     # Make sure the SIP include directory is searched before the Python include
     # directory if they are different.
     pro.write('INCLUDEPATH += %s\n' % quote(target_config.sip_inc_dir))