|
|
|
@ -56,7 +56,7 @@ def setup(**arg_dict):
|
|
|
|
|
'install_messages' : InstallI18NMessages,
|
|
|
|
|
'update_messages' : UpdateI18NMessages,
|
|
|
|
|
'checkpyqt' : CheckPyQt,
|
|
|
|
|
'checkpykde' : CheckPyKDE,
|
|
|
|
|
'checkpytde' : CheckPyKDE,
|
|
|
|
|
'uninstall' : Uninstall,
|
|
|
|
|
'build' : BuildKDE,
|
|
|
|
|
'build_kcm' : BuildKControlModule,
|
|
|
|
@ -177,7 +177,7 @@ class InstallKDE(install):
|
|
|
|
|
user_options.append( ('install-protocol',None,"directory for kioslave protocol files") )
|
|
|
|
|
|
|
|
|
|
sub_commands = install.sub_commands[:]
|
|
|
|
|
sub_commands.insert(0, ('checkpykde',None) )
|
|
|
|
|
sub_commands.insert(0, ('checkpytde',None) )
|
|
|
|
|
sub_commands.insert(0, ('checkpyqt',None) )
|
|
|
|
|
sub_commands.append( ('install_executable_links',has_executable_links) )
|
|
|
|
|
sub_commands.append( ('install_messages',has_messages) )
|
|
|
|
@ -505,7 +505,7 @@ class BuildKControlModule(Command):
|
|
|
|
|
('sip-dir=','/usr/lib/pyshared/python2.6','Directory containing the sip library files'),
|
|
|
|
|
('clib=',None,'gcc library and path'),
|
|
|
|
|
('pyqt-dir=','/usr/lib/pyshared/python2.6','PyQt module directory'),
|
|
|
|
|
('pykde-dir=',None,'PyKDE module directory'),
|
|
|
|
|
('pytde-dir=',None,'PyKDE module directory'),
|
|
|
|
|
('data-dir=',None,'installation directory for data (script) files')]
|
|
|
|
|
|
|
|
|
|
def initialize_options(self):
|
|
|
|
@ -521,7 +521,7 @@ class BuildKControlModule(Command):
|
|
|
|
|
self.sip_dir = "/usr/lib/pyshared/python2.6"
|
|
|
|
|
self.clib = None
|
|
|
|
|
self.pyqt_dir = "/usr/lib/pyshared/python2.6"
|
|
|
|
|
self.pykde_dir = None
|
|
|
|
|
self.pytde_dir = None
|
|
|
|
|
self.data_dir = None
|
|
|
|
|
|
|
|
|
|
def finalize_options(self):
|
|
|
|
@ -619,11 +619,11 @@ class BuildKControlModule(Command):
|
|
|
|
|
self.announce("Using %s for PyQt modules" % self.pyqt_dir)
|
|
|
|
|
|
|
|
|
|
# PyKDE dir
|
|
|
|
|
if self.pykde_dir is None:
|
|
|
|
|
self.pykde_dir = sysconfig.get_python_lib()
|
|
|
|
|
if (FindFileInPaths("libtdecorecmodule*",[self.pykde_dir]) is None) and (FindFileInPaths("tdecore*",[self.pykde_dir]) is None):
|
|
|
|
|
raise SystemExit, "Failed to find the PyKDE directory: %s" % self.pykde_dir
|
|
|
|
|
self.announce("Using %s for PyKDE modules" % self.pykde_dir)
|
|
|
|
|
if self.pytde_dir is None:
|
|
|
|
|
self.pytde_dir = sysconfig.get_python_lib()
|
|
|
|
|
if (FindFileInPaths("libtdecorecmodule*",[self.pytde_dir]) is None) and (FindFileInPaths("tdecore*",[self.pytde_dir]) is None):
|
|
|
|
|
raise SystemExit, "Failed to find the PyKDE directory: %s" % self.pytde_dir
|
|
|
|
|
self.announce("Using %s for PyKDE modules" % self.pytde_dir)
|
|
|
|
|
|
|
|
|
|
# Sip dir
|
|
|
|
|
if self.sip_dir is None:
|
|
|
|
@ -805,14 +805,14 @@ class BuildKControlModule(Command):
|
|
|
|
|
# PyQt libs
|
|
|
|
|
linklist.append(self.pyqt_dir+"/qt.so")
|
|
|
|
|
# PyKDE libs
|
|
|
|
|
linklist.append(self.pykde_dir+"/tdecore.so")
|
|
|
|
|
linklist.append(self.pykde_dir+"/tdeui.so")
|
|
|
|
|
linklist.append(self.pytde_dir+"/tdecore.so")
|
|
|
|
|
linklist.append(self.pytde_dir+"/tdeui.so")
|
|
|
|
|
|
|
|
|
|
# linklist.append("-L"+self.sip_dir); linklist.append("-lsip")
|
|
|
|
|
# # PyQt libs
|
|
|
|
|
# linklist.append("-L"+self.pyqt_dir); linklist.append("-lqtcmodule")
|
|
|
|
|
# # PyKDE libs
|
|
|
|
|
# linklist.append("-L"+self.pykde_dir); linklist.append("-ltdecorecmodule"); linklist.append("-ltdeuicmodule")
|
|
|
|
|
# linklist.append("-L"+self.pytde_dir); linklist.append("-ltdecorecmodule"); linklist.append("-ltdeuicmodule")
|
|
|
|
|
|
|
|
|
|
linklist.append("-L"+self.kde_lib_dir); linklist.append("-L/opt/trinity/lib"); linklist.append("-ltdecore"); linklist.append("-lpythonize")
|
|
|
|
|
linklist.append("-L"+self.qt_lib_dir); linklist.append("-lqt-mt")
|
|
|
|
@ -825,7 +825,7 @@ class BuildKControlModule(Command):
|
|
|
|
|
linklist.append("-R"); linklist.append(self.qt_lib_dir)
|
|
|
|
|
linklist.append("-R"); linklist.append(self.sip_dir)
|
|
|
|
|
linklist.append("-R"); linklist.append(self.pyqt_dir)
|
|
|
|
|
linklist.append("-R"); linklist.append(self.pykde_dir)
|
|
|
|
|
linklist.append("-R"); linklist.append(self.pytde_dir)
|
|
|
|
|
linklist.append("-R"); linklist.append(self.kde_lib_dir)
|
|
|
|
|
|
|
|
|
|
cmdlist.extend(linklist)
|
|
|
|
@ -1433,7 +1433,7 @@ class BuildKioslave(Command):
|
|
|
|
|
('sip-dir=','/usr/lib/pyshared/python2.6','Directory containing the sip library files'),
|
|
|
|
|
('clib=',None,'gcc library and path'),
|
|
|
|
|
('pyqt-dir=','/usr/lib/pyshared/python2.6','PyQt module directory'),
|
|
|
|
|
('pykde-dir=',None,'PyKDE module directory'),
|
|
|
|
|
('pytde-dir=',None,'PyKDE module directory'),
|
|
|
|
|
('data-dir=',None,'installation directory for data (script) files')]
|
|
|
|
|
|
|
|
|
|
def initialize_options(self):
|
|
|
|
@ -1450,7 +1450,7 @@ class BuildKioslave(Command):
|
|
|
|
|
self.sip_dir = "/usr/lib/pyshared/python2.6"
|
|
|
|
|
self.clib = None
|
|
|
|
|
self.pyqt_dir = "/usr/lib/pyshared/python2.6"
|
|
|
|
|
self.pykde_dir = None
|
|
|
|
|
self.pytde_dir = None
|
|
|
|
|
self.data_dir = None
|
|
|
|
|
|
|
|
|
|
def finalize_options(self):
|
|
|
|
@ -1547,11 +1547,11 @@ class BuildKioslave(Command):
|
|
|
|
|
self.announce("Using %s for PyQt modules" % self.pyqt_dir)
|
|
|
|
|
|
|
|
|
|
# PyKDE dir
|
|
|
|
|
if self.pykde_dir is None:
|
|
|
|
|
self.pykde_dir = sysconfig.get_python_lib()
|
|
|
|
|
if (FindFileInPaths("libtdecorecmodule*",[self.pykde_dir]) is None) and (FindFileInPaths("tdecore*",[self.pykde_dir]) is None):
|
|
|
|
|
raise SystemExit, "Failed to find the PyKDE directory: %s" % self.pykde_dir
|
|
|
|
|
self.announce("Using %s for PyKDE modules" % self.pykde_dir)
|
|
|
|
|
if self.pytde_dir is None:
|
|
|
|
|
self.pytde_dir = sysconfig.get_python_lib()
|
|
|
|
|
if (FindFileInPaths("libtdecorecmodule*",[self.pytde_dir]) is None) and (FindFileInPaths("tdecore*",[self.pytde_dir]) is None):
|
|
|
|
|
raise SystemExit, "Failed to find the PyKDE directory: %s" % self.pytde_dir
|
|
|
|
|
self.announce("Using %s for PyKDE modules" % self.pytde_dir)
|
|
|
|
|
|
|
|
|
|
# Sip dir
|
|
|
|
|
if self.sip_dir is None:
|
|
|
|
@ -1718,13 +1718,13 @@ class BuildKioslave(Command):
|
|
|
|
|
# PyQt libs
|
|
|
|
|
linklist.append(self.pyqt_dir+"/qt.so")
|
|
|
|
|
# PyKDE libs
|
|
|
|
|
linklist.append(self.pykde_dir+"/tdecore.so")
|
|
|
|
|
linklist.append(self.pytde_dir+"/tdecore.so")
|
|
|
|
|
|
|
|
|
|
# linklist.append("-L"+self.sip_dir); linklist.append("-lsip")
|
|
|
|
|
# # PyQt libs
|
|
|
|
|
# linklist.append("-L"+self.pyqt_dir); linklist.append("-lqtcmodule")
|
|
|
|
|
# # PyKDE libs
|
|
|
|
|
# linklist.append("-L"+self.pykde_dir); linklist.append("-ltdecorecmodule"); linklist.append("-ltdeuicmodule")
|
|
|
|
|
# linklist.append("-L"+self.pytde_dir); linklist.append("-ltdecorecmodule"); linklist.append("-ltdeuicmodule")
|
|
|
|
|
|
|
|
|
|
linklist.append("-L"+self.kde_lib_dir); linklist.append("-L/opt/trinity/lib"); linklist.append("-ltdecore"); linklist.append("-lpythonize")
|
|
|
|
|
linklist.append("-L"+self.qt_lib_dir); linklist.append("-lqt-mt")
|
|
|
|
@ -1737,7 +1737,7 @@ class BuildKioslave(Command):
|
|
|
|
|
linklist.append("-R"); linklist.append(self.qt_lib_dir)
|
|
|
|
|
linklist.append("-R"); linklist.append(self.sip_dir)
|
|
|
|
|
linklist.append("-R"); linklist.append(self.pyqt_dir)
|
|
|
|
|
linklist.append("-R"); linklist.append(self.pykde_dir)
|
|
|
|
|
linklist.append("-R"); linklist.append(self.pytde_dir)
|
|
|
|
|
linklist.append("-R"); linklist.append(self.kde_lib_dir)
|
|
|
|
|
|
|
|
|
|
cmdlist.extend(linklist)
|
|
|
|
@ -2014,7 +2014,7 @@ class CheckPyKDE(Command):
|
|
|
|
|
except:
|
|
|
|
|
raise SystemExit, "Error: Couldn't find module '" + k_module + "'. \n" + \
|
|
|
|
|
"Couldn't import KDE! Please make sure that PyKDE is installed and working.\n" + \
|
|
|
|
|
"PyKDE is available here: http://www.riverbankcomputing.co.uk/pykde/index.php"
|
|
|
|
|
"PyKDE is available here: http://www.riverbankcomputing.co.uk/pytde/index.php"
|
|
|
|
|
self.announce(" ...PyKDE is working")
|
|
|
|
|
|
|
|
|
|
def get_outputs(self): return []
|
|
|
|
|