def run(self): if self.distribution.subpackages != None: self.ran = True build = self.get_finalized_command('build') try: os.makedirs(build.build_base) except: pass for idx in range(len(sys.argv)): if 'setup.py' in sys.argv[idx]: break argv = list(sys.argv[idx+1:]) if 'build' in argv: argv.remove('build') if 'clean' in argv: argv.remove('clean') process_subpackages(build.distribution.parallel_build, 'install', build.build_base, self.distribution.subpackages, argv, build.distribution.quit_on_error) if build.has_pure_modules() or build.has_c_libraries() or \ build.has_ext_modules() or build.has_shared_libraries() or \ build.has_pypp_extensions() or \ build.has_web_extensions() or \ build.has_documents() or build.has_executables() or \ build.has_scripts() or build.has_data(): old_install.run(self) else: old_install.run(self)
def run(self): if platform.system() == 'Linux': linux_compile() elif platform.system() == 'Windows': windows_compile() else: raise ValueError('Installation not supported for %s' % platform.system()) print(os.getcwd()) install.run(self)
def run(self): install.run(self) # post installation: #installation folder: #from distutils.sysconfig import get_python_lib #get_python_lib(plat_specific=1) print ''' enjoy okean ''' '''
def run(self): install.run(self) # post installation: # link pppack import os from distutils.sysconfig import get_python_lib p = get_python_lib(plat_specific=1) # installation folder src = os.path.join(p, 'okean', 'roms', 'rtools.so') dest = os.path.join(p, 'okean', 'pppack.so') # os.symlink(src,dest) print '''
def run(self): install.run(self) # post installation: # link pppack import os from distutils.sysconfig import get_python_lib p=get_python_lib(plat_specific=1) # installation folder src=os.path.join(p,'okean','roms','rtools.so') dest=os.path.join(p,'okean','pppack.so') # os.symlink(src,dest) print '''
def run(self): deps = self.get_finalized_command('dependencies') build = self.get_finalized_command('build') level_list = [deps.sublevel, build.sublevel, self.sublevel] ## detect malformed usage if len(set([l for l in level_list if l])) > 1: raise Exception("Multiple sublevels specified.") self.sublevel = build.sublevel = deps.sublevel = max(*level_list) ## before anything else (runs in case build hasn't run) if self.sublevel == 0 and not deps.ran: self.run_command('dependencies') options.set_top_level(self.sublevel) if self.distribution.subpackages != None: try: os.makedirs(build.build_base) except OSError: pass idx = 0 for i in range(len(sys.argv)): idx = i if 'setup.py' in sys.argv[idx]: break argv = list(sys.argv[idx+1:]) for arg in sys.argv: if arg == 'build' or \ arg == 'clean' or \ '--sublevel' in arg: argv.remove(arg) argv += ['--sublevel=' + str(self.sublevel + 1)] process_subpackages(build.distribution.parallel_build, 'install', build.build_base, self.distribution.subpackages, argv, build.distribution.quit_on_error) if build.has_pure_modules() or build.has_c_libraries() or \ build.has_ext_modules() or build.has_shared_libraries() or \ build.has_pypp_extensions() or \ build.has_web_extensions() or \ build.has_documents() or build.has_executables() or \ build.has_scripts() or build.has_data(): old_install.run(self) else: old_install.run(self) self.ran = True
def run(self): self.get_finalized_command('xspec_config', True).run() self.get_finalized_command('sherpa_config', True).run() _install.run(self)
def run(self): """Build the Fortran library, all python extensions and the docs.""" print('---- CUSTOM INSTALL ----') _install.run(self)
def run(self): if not os.path.exists('extern/built'): configure = self.get_finalized_command('sherpa_config', True).build_configure() self.get_finalized_command('xspec_config', True).run() build_deps(configure) _install.run(self)
def run(self): install.run(self) print '''