qt5_includes
authorDebian Python Modules Team <python-modules-team@lists.alioth.debian.org>
Mon, 22 Sep 2014 02:09:22 +0000 (03:09 +0100)
committerScott Kitterman <scott@kitterman.com>
Mon, 22 Sep 2014 02:09:22 +0000 (03:09 +0100)
When building for Qt5, the python extension needs QtWidgets and QtPrintSupport
because things moved there from QtGui in Qt4.  Sent upstream.

Gbp-Pq: Name qt5_includes.patch

Python/configure.py

index 927a98c222c87a7c190d53175c0e0d5a244cf8df..2ab9dfd9a733d3a41b51a2b8f848131624ed621c 100644 (file)
@@ -1429,6 +1429,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))