def make_install(self): ret = super(Qscintilla, self).make_install() qt4_ = qt4() try: shutil.move( path(qt4_.install_dll_dir)/"libqscintilla2.a", qt4_.install_lib_dir) except Exception, e : print e
def setup(self): qt4_ = qt4() pyqt4_ = pyqt4() sip_ = sip() # binaries are the union of qt, pyqt and sip binaries bin_dirs = {"bin":str(qt4_.install_bin_dir)} # includes are recursive subdirectories and the union of qt and sip includes incs = recursive_glob_as_dict( qt4_.install_inc_dir, Pattern.qtinc, strip_keys=True, prefix_key="include", dirs=True).items() + \ recursive_glob_as_dict( sip_.install_inc_dir, Pattern.qtinc, strip_keys=True, prefix_key="include", dirs=True).items() inc_dirs = merge_list_dict( incs ) # libs are recursive subdirectories of qt libs libs = recursive_glob_as_dict(qt4_.install_lib_dir, Pattern.qtstalib, strip_keys=True, prefix_key="lib").items() # sip files are recursive subdirectories and the union of pyqt4 and... sips = recursive_glob_as_dict(pyqt4_.install_sip_dir, Pattern.sipfiles, strip_keys=True, prefix_key="sip").items() # sources are recursive subdirectories and the union of qt4 and that all (CPP have been removed)... srcs = recursive_glob_as_dict(qt4_.install_src_dir, Pattern.qtsrc, strip_keys=True, prefix_key="src").items() # tra files are recursive subdirectories in qt4 tra = recursive_glob_as_dict(qt4_.install_tra_dir, Pattern.qttransl, strip_keys=True, prefix_key="translations").items() # mks files are recursive subdirectories in qt4 mks = recursive_glob_as_dict(qt4_.install_mks_dir, Pattern.qtmkspec, strip_keys=True, prefix_key="mkspecs").items() # plugins files are recursive subdirectories in qt4 plu = recursive_glob_as_dict(qt4_.install_plu_lib_dir, Pattern.qtstalib, strip_keys=True, prefix_key="plugins").items() return dict( VERSION = qt4_.version, BIN_DIRS = bin_dirs, INC_DIRS = inc_dirs, DATA_FILES = libs+sips+srcs+tra+mks+plu, INSTALL_REQUIRES = [qt4_.egg_name()] )
def configure(self): # The install procedure will install qscintilla in qt's installation directories qt4_ = qt4() paths = qt4_.install_inc_dir, qt4_.install_tra_dir, qt4_.installdir, qt4_.install_dll_dir, cmd = ("qmake -after header.path=%s trans.path=%s qsci.path=%s " + \ "target.path=%s -spec win32-g++ qscintilla.pro")%paths print print cmd print ret = sh(cmd) == 0 return ret
def __init__(self, *args, **kwargs): super(Pyqscintilla, self).__init__(*args, **kwargs) self.sourcedir = path(self.sourcedir)/"Python" # define installation paths qsci = qscintilla() qt4_ = qt4() pyqt = pyqt4() self.install_paths = path(qt4_.installdir)/"qsci", path(qsci.sourcedir)/"Qt4Qt5"/"release", \ path(qsci.sourcedir)/"Qt4Qt5", path(pyqt.sourcedir)/"sip", \ path(pyqt.install_site_dir)/"PyQt4" self.qsci_dir = self.install_paths[0]
def __init__(self, *args, **kwargs): super(Pyqt4, self).__init__(*args, **kwargs) # we install pyqt4 binaries in the qt bin installation directory to easily recover it # for the egg. The eggs are built in the historical layout used by openalea packagers. # This doesn't mean it's good. It doesn't mean it's bad though it does look a bit messy. qt4_ = qt4() sip = sip_() self.install_bin_dir = qt4_.install_bin_dir self.install_site_dir = path(self.installdir)/"site" self.install_sip_dir = path(self.installdir)/"sip" self.inst_paths = self.install_bin_dir, self.install_site_dir, self.install_sip_dir self.sipsite = sip.install_site_dir self.siphome = sip.install_sip_dir
def setup(self): qt4_ = qt4() qglv_ = qglviewer() pyqgl_mods = recursive_glob_as_dict(self.install_site_dir, Pattern.pyall, strip_keys=True, levels=1).items() # includes are recursive subdirectories of qglviewer incs = recursive_glob_as_dict(qglv_.install_inc_dir, Pattern.include, strip_keys=True, prefix_key="include", dirs=True).items() inc_dirs = merge_list_dict(incs) # libs are recursive subdirectories of qt libs libs = recursive_glob_as_dict(qglv_.install_lib_dir, Pattern.qtstalib, strip_keys=True, prefix_key="lib").items() # sip files are recursive subdirectories of pyqglviewer sip installation directory sips = recursive_glob_as_dict(self.install_sip_dir, Pattern.sipfiles, strip_keys=True, prefix_key="sip").items() # examples are recursive subdirectories of pyqglviewer examples installation directory contains various types of files exas = recursive_glob_as_dict(self.install_exa_dir, Pattern.any, strip_keys=True, prefix_key="examples").items() lib_dirs = {"": str(qglv_.install_dll_dir)} data_files = exas + sips + libs + pyqgl_mods # Need an other shell ??? try: import PyQGLViewer except ImportError: print "=================================" print "!!!!Can't import PyQGLViewer!!!!!" print "Close current shell and try again" print "=================================" raise return dict( VERSION=PyQGLViewer.QGLViewerVersionString(), PACKAGE_DATA={'': [Pattern.pyext]}, #PACKAGE_DIRS = package_dir, LIB_DIRS=lib_dirs, INC_DIRS=inc_dirs, DATA_FILES=data_files, INSTALL_REQUIRES=[qt4_.egg_name()])
def setup(self): qt4_ = qt4() pyqt4_ = pyqt4() sip_ = sip() # binaries are the union of qt, pyqt and sip binaries bin_dirs = {"bin": str(qt4_.install_bin_dir)} # includes are recursive subdirectories and the union of qt and sip includes incs = recursive_glob_as_dict( qt4_.install_inc_dir, Pattern.qtinc, strip_keys=True, prefix_key="include", dirs=True).items() + \ recursive_glob_as_dict( sip_.install_inc_dir, Pattern.qtinc, strip_keys=True, prefix_key="include", dirs=True).items() inc_dirs = merge_list_dict(incs) # libs are recursive subdirectories of qt libs libs = recursive_glob_as_dict(qt4_.install_lib_dir, Pattern.qtstalib, strip_keys=True, prefix_key="lib").items() # sip files are recursive subdirectories and the union of pyqt4 and... sips = recursive_glob_as_dict(pyqt4_.install_sip_dir, Pattern.sipfiles, strip_keys=True, prefix_key="sip").items() # sources are recursive subdirectories and the union of qt4 and that all (CPP have been removed)... srcs = recursive_glob_as_dict(qt4_.install_src_dir, Pattern.qtsrc, strip_keys=True, prefix_key="src").items() # tra files are recursive subdirectories in qt4 tra = recursive_glob_as_dict(qt4_.install_tra_dir, Pattern.qttransl, strip_keys=True, prefix_key="translations").items() # mks files are recursive subdirectories in qt4 mks = recursive_glob_as_dict(qt4_.install_mks_dir, Pattern.qtmkspec, strip_keys=True, prefix_key="mkspecs").items() # plugins files are recursive subdirectories in qt4 plu = recursive_glob_as_dict(qt4_.install_plu_lib_dir, Pattern.qtstalib, strip_keys=True, prefix_key="plugins").items() return dict(VERSION=qt4_.version, BIN_DIRS=bin_dirs, INC_DIRS=inc_dirs, DATA_FILES=libs + sips + srcs + tra + mks + plu, INSTALL_REQUIRES=[qt4_.egg_name()])