def install(self, environ, version, strict=False, locally=True): if not self.found: src_dir = self.download(environ, version, strict) install_pypkg_without_fetch(self.pkg, None, src_dir, locally) self.did_install = True if not self.is_installed(environ, version, strict): raise ConfigError(self.pkg, 'Installation failed.')
def install(self, environ, version, strict=False, locally=True): if not self.found: src_dir = self.download(environ, version, strict) install_pypkg_without_fetch('wxglade', src_dir=src_dir, locally=locally) if not self.is_installed(environ, version, strict): raise ConfigError('wxGlade', 'Installation failed.')
def install(self, environ, version, strict=False, locally=True): if not self.found: src_dir = self.download(environ, version, strict) install_pypkg_without_fetch('ctypesgen', src_dir=src_dir, locally=locally) if locally: prefix = os.path.abspath(options.target_build_dir) if not prefix in options.local_search_paths: options.add_local_search_path(prefix) if not self.is_installed(environ, version, strict): raise Exception('ctypesgen installation failed.')
def install(self, environ, version, strict=False, locally=True): if not self.found: src_dir = self.download(environ, version, strict) ## Requires LLVM_CONFIG_PATH from llvm_lib try: cfg_path = environ['LLVM_CONFIG_PATH'] except KeyError: raise ConfigError('Python llvm package requires ' + 'a custom-compiled LLVM library, ' + 'which was not found.') install_pypkg_without_fetch(self.pkg, src_dir=src_dir, locally=locally, env=['LLVM_CONFIG_PATH=' + cfg_path]) if not self.is_installed(environ, version, strict): raise Exception('LLVM python wrapper installation failed.')
def install(self, environ, version, strict=False, locally=True): if not self.found: src_dir = self.download(environ, version, strict) pth = install_pypkg_without_fetch(self.pkg, src_dir=src_dir, locally=locally) if not self.is_installed(environ, version, strict): raise Exception('matplotlib installation failed.') #TODO is matplotlib data file info this needed at all? mpl = sys.modules.get('matplotlib', None) if mpl: self.environment['MATPLOTLIB_DATA_FILES'] = \ mpl.get_py2exe_datafiles() else: ## Can't re-import properly? datapath = os.path.abspath(os.path.join(pth, 'matplotlib', 'mpl-data')) tail = os.path.split(datapath)[1] d = {} for root, _, files in os.walk(datapath): # Need to explicitly remove cocoa_agg files if 'Matplotlib.nib' in files: files.remove('Matplotlib.nib') files = [os.path.join(root, filename) for filename in files] root = root.replace(tail, 'mpl-data') root = root[root.index('mpl-data'):] d[root] = files self.environment['MATPLOTLIB_DATA_FILES'] = list(d.items())
def install(self, environ, version, strict=False, locally=True): if not self.found: src_dir = self.download(environ, version, strict) pth = install_pypkg_without_fetch(self.pkg, src_dir=src_dir, locally=locally) self.environment['BASEMAP_DATA_PATHLIST'] = self.basemap_data_pathlist basemap_dir = os.path.join(pth, 'mpl_toolkits', 'basemap') self.environment['BASEMAP_DIR'] = basemap_dir self.environment['BASEMAP_DATA_FILES'] = \ [(self.basemap_data_dir, glob.glob(os.path.join(basemap_dir, 'data', '*.*')))] self.__patch(basemap_dir) if not self.is_installed(environ, version, strict): raise Exception('basemap installation failed.')
def install(self, environ, version, strict=False, locally=True): if not self.found: src_dir = self.download(environ, version, strict) install_pypkg_without_fetch(self.pkg, src_dir=src_dir, locally=locally)