From fa76c8c1bc14d9df241bafe4e0bfe0b5788b7076 Mon Sep 17 00:00:00 2001 From: Debian Python Modules Team Date: Mon, 22 Sep 2014 03:09:22 +0100 Subject: [PATCH] qt5_includes 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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Python/configure.py b/Python/configure.py index 927a98c..2ab9dfd 100644 --- a/Python/configure.py +++ b/Python/configure.py @@ -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)) -- 2.30.2