diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2016-09-29 09:33:47 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2016-09-29 09:33:59 +0200 |
commit | b3b00fdc3327331c514ced1c657d16ab76b656fd (patch) | |
tree | 2aba6ac241cb1ec0da4002ea4a3592eb8f817ef4 /src | |
parent | 81789276fd54b7b72a6f24ef6e6f4cdb26a9ea41 (diff) | |
download | pytdeextensions-b3b00fdc3327331c514ced1c657d16ab76b656fd.tar.gz pytdeextensions-b3b00fdc3327331c514ced1c657d16ab76b656fd.zip |
Find sip4_tqt and python_tqt modules in all sys.path
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit d8d1f4861616f1ae1ce7eb38452be8f9edbc266e)
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 |