python-qt5/python-qt5_sipdir.patch
Rex Dieter 1053459cdc New base sub package to provide QtBase only (RHBZ#1394626)
New requirement from the main package to the base sub package
2017-04-03 06:59:27 -05:00

21 lines
846 B
Diff

diff -up PyQt5_gpl-5.8.2/configure.py.qt5_sipdir PyQt5_gpl-5.8.2/configure.py
--- PyQt5_gpl-5.8.2/configure.py.qt5_sipdir 2017-03-30 03:46:57.000000000 -0500
+++ PyQt5_gpl-5.8.2/configure.py 2017-04-03 06:58:50.647698195 -0500
@@ -25,6 +25,7 @@ import os
import shutil
import stat
import sys
+import sipconfig
# Initialise the constants.
@@ -485,7 +486,7 @@ class TargetConfiguration:
self.pyqt_bin_dir = py_config.bin_dir
self.pyqt_module_dir = py_config.module_dir
self.pyqt_stubs_dir = os.path.join(py_config.module_dir, 'PyQt5')
- self.pyqt_sip_dir = os.path.join(py_config.data_dir, 'sip', 'PyQt5')
+ self.pyqt_sip_dir = os.path.join(sipconfig.Configuration().default_sip_dir, 'PyQt5')
self.pyuic_interpreter = py_config.pyuic_interpreter
# The qmake spec we want to use.