qt5_includes
authorSVN-Git Migration <python-modules-team@lists.alioth.debian.org>
Thu, 8 Oct 2015 20:39:19 +0000 (13:39 -0700)
committerAndreas Beckmann <anbe@debian.org>
Sun, 16 Jun 2019 12:55:29 +0000 (13: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 58902a596a025970cbd9f85aa22b98daedae3136..30a13f0cb0c042796e923998f39d84e22269c007 100644 (file)
@@ -1548,6 +1548,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))