|
|
|
@ -39,18 +39,6 @@ from types import StringType
|
|
|
|
|
|
|
|
|
|
INSTALL_LIST = 'install_log.txt'
|
|
|
|
|
|
|
|
|
|
# Trinity-specific paths
|
|
|
|
|
tqt_modules = []
|
|
|
|
|
for m_path in sys.path:
|
|
|
|
|
if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
|
|
|
|
|
m_sip_dir = os.path.join(m_path, 'sip4_tqt')
|
|
|
|
|
tqt_modules.insert(0, m_sip_dir)
|
|
|
|
|
if os.path.exists(os.path.join(m_path, 'python_tqt')):
|
|
|
|
|
m_pyqt_dir = os.path.join(m_path, 'python_tqt')
|
|
|
|
|
tqt_modules.insert(0, m_pyqt_dir)
|
|
|
|
|
for m_path in tqt_modules:
|
|
|
|
|
sys.path.insert(0, m_path)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
###########################################################################
|
|
|
|
|
def setup(**arg_dict):
|
|
|
|
@ -649,8 +637,6 @@ class BuildKControlModule(Command):
|
|
|
|
|
self.announce("Using %s for Python header files" % self.python_inc_dir)
|
|
|
|
|
|
|
|
|
|
# PyQt dir
|
|
|
|
|
if self.pyqt_dir is None:
|
|
|
|
|
self.pyqt_dir = m_pyqt_dir
|
|
|
|
|
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):
|
|
|
|
@ -665,8 +651,6 @@ class BuildKControlModule(Command):
|
|
|
|
|
self.announce("Using %s for PyTDE modules" % self.pytde_dir)
|
|
|
|
|
|
|
|
|
|
# Sip dir
|
|
|
|
|
if self.sip_dir is None:
|
|
|
|
|
self.sip_dir = m_sip_dir
|
|
|
|
|
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):
|
|
|
|
@ -1604,8 +1588,6 @@ class BuildTdeioslave(Command):
|
|
|
|
|
self.announce("Using %s for Python header files" % self.python_inc_dir)
|
|
|
|
|
|
|
|
|
|
# PyQt dir
|
|
|
|
|
if self.pyqt_dir is None:
|
|
|
|
|
self.pyqt_dir = m_pyqt_dir
|
|
|
|
|
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):
|
|
|
|
@ -1620,8 +1602,6 @@ class BuildTdeioslave(Command):
|
|
|
|
|
self.announce("Using %s for PyTDE modules" % self.pytde_dir)
|
|
|
|
|
|
|
|
|
|
# Sip dir
|
|
|
|
|
if self.sip_dir is None:
|
|
|
|
|
self.sip_dir = m_sip_dir
|
|
|
|
|
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):
|
|
|
|
@ -2049,7 +2029,7 @@ class CheckPyQt(Command):
|
|
|
|
|
self.announce("Found Qt version %s." % qtver)
|
|
|
|
|
try:
|
|
|
|
|
self.announce("Checking for a working PyQt...")
|
|
|
|
|
import qt
|
|
|
|
|
from python_tqt import qt
|
|
|
|
|
self.announce(" ...PyQt is working")
|
|
|
|
|
except:
|
|
|
|
|
raise SystemExit, "Couldn't import Qt! Please make sure that PyQt is installed and working."
|
|
|
|
|