diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/tdedistutils.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tdedistutils.py b/src/tdedistutils.py index 9515010..fa14021 100644 --- a/src/tdedistutils.py +++ b/src/tdedistutils.py @@ -638,6 +638,8 @@ class BuildKControlModule(Command): # PyQt dir if self.pyqt_dir is None: + self.pyqt_dir = FindFileInPaths("python_tqt", sys.path) + if self.pyqt_dir is None: self.pyqt_dir = os.path.join(sysconfig.get_python_lib(), 'python_tqt') if (FindFileInPaths("libqtcmodule*",[self.pyqt_dir]) is None) and (FindFileInPaths("qt*",[self.pyqt_dir]) is None): raise SystemExit, "Failed to find the PyQt directory: %s" % self.pyqt_dir @@ -652,6 +654,8 @@ class BuildKControlModule(Command): # Sip dir if self.sip_dir is None: + self.sip_dir = FindFileInPaths("sip4_tqt", sys.path) + if self.sip_dir is None: self.sip_dir = os.path.join(sysconfig.get_python_lib(), 'sip4_tqt') if (FindFileInPaths("libsip*", [self.sip_dir]) is None) and (FindFileInPaths("sip*", [self.sip_dir]) is None): raise SystemExit, "Failed to find libsip files in directory: %s" % self.sip_dir @@ -1589,6 +1593,8 @@ class BuildTdeioslave(Command): # PyQt dir if self.pyqt_dir is None: + self.pyqt_dir = FindFileInPaths("python_tqt", sys.path) + if self.pyqt_dir is None: self.pyqt_dir = os.path.join(sysconfig.get_python_lib(), 'python_tqt') if (FindFileInPaths("libqtcmodule*",[self.pyqt_dir]) is None) and (FindFileInPaths("qt*",[self.pyqt_dir]) is None): raise SystemExit, "Failed to find the PyQt directory: %s" % self.pyqt_dir @@ -1603,6 +1609,8 @@ class BuildTdeioslave(Command): # Sip dir if self.sip_dir is None: + self.sip_dir = FindFileInPaths("sip4_tqt", sys.path) + if self.sip_dir is None: self.sip_dir = os.path.join(sysconfig.get_python_lib(), 'sip4_tqt') if (FindFileInPaths("libsip*", [self.sip_dir]) is None) and (FindFileInPaths("sip*", [self.sip_dir]) is None): raise SystemExit, "Failed to find libsip files in directory: %s" % self.sip_dir |