def run(self): """ Need to find any pre-existing vext contained in dependent packages and install them example: you create a setup.py with install_requires["vext.gi"]: - vext.gi gets installed using bdist_egg - vext itself is now called with bdist_egg and we end up here Vext now needs to find and install .vext files in vext.gi [or any other files that depend on vext] :return: """ print("vext InstallLib") # Find packages that depend on vext and check for .vext files... vext_files = self.find_vext_files() print("vext files: ", vext_files) self.manually_install_vext(vext_files) self.enable_vext() install_lib.run(self)
def run(self): global uwsgi_compiled if not uwsgi_compiled: conf = uc.uConf(get_profile()) patch_bin_path(self, conf) uc.build_uwsgi(conf) uwsgi_compiled = True install_lib.run(self)
def run(self): install_lib.run(self) # Make executables executable for path in self.get_outputs(): for exe_path in EXECUTABLES_PATHS: if path.endswith(exe_path): mode = ((os.stat(path).st_mode) | 0o555) & 0o7777 log.info('changing mode of %s to %o', path, mode) os.chmod(path, mode)
def run(self): install_lib.run(self) # prepare filesystem main_dir_name = 'themis' target_dir = '%s/%s' % (self.install_dir, main_dir_name) # delete existing directory subprocess.check_output('rm -r %s' % (main_dir_name), shell=True) # create symlink subprocess.check_output('ln -s %s %s' % (target_dir, main_dir_name), shell=True) # install npm modules subprocess.check_output('make npm', shell=True)
def run(self): install_lib.run(self) cwd = os.path.join( os.getcwdu(), self.install_dir ) cwd = os.path.join( cwd, PACKAGE_NAME ) print( 'Running mkdeps in ' + cwd ) check_call( [os.path.join( cwd, 'mkdeps' )], cwd=cwd ) check_call( [os.path.join( cwd, 'mkdeps' ), 'clean'], cwd=cwd )
def run(self): """ checks for a valid pycrypto version before running the install process, prints a warning if none was found """ try: import Crypto if Crypto.version_info < (2,1): print('\n**** WARNING: ****\nYou seem to have pyCrypto < 2.1 ' 'installed. python-potr will need at least pyCrypto 2.1 to run\n\n') except: print('\n**** WARNING: ****\nYou don\'t seem to have pyCrypto ' 'installed. python-potr will need at least pyCrypto 2.1 to run\n\n') install_lib.run(self)
def run(self): self.l10n_run() # When bdist_egg is called on distribute 0.6.29 and later, the # egg file includes no *.mo and *.js files which are generated # in l10n_run() method. # We remove build_py.data_files property to re-compute in order # to avoid the issue (#11640). build_py = self.get_finalized_command('build_py') if 'data_files' in build_py.__dict__ and \ not any(any(name.endswith('.mo') for name in filenames) for pkg, src_dir, build_dir, filenames in build_py.data_files): del build_py.__dict__['data_files'] _install_lib.run(self)
def run(self): install_lib.run(self) # prepare filesystem main_dir_name = 'localstack' target_dir = '%s/%s' % (self.install_dir, main_dir_name) infra_dir = '%s/infra' % (main_dir_name) # delete existing directory subprocess.check_output('rm -r %s' % (main_dir_name), shell=True) # create symlink subprocess.check_output('ln -s %s %s' % (target_dir, main_dir_name), shell=True) # delete infra directory (if it exists) to force re-install subprocess.check_output('rm -rf %s' % (infra_dir), shell=True) # run 'make install' do_make_install()
def run(self): # Call parent install_lib.run(self) # Execute commands if not os.path.exists(CONF_DIR): os.mkdir(CONF_DIR) if not os.path.exists(NET_AGENT_ACL_CONF_DIR): os.makedirs(NET_AGENT_ACL_CONF_DIR) if not os.path.exists(NET_AGENT_QOS_CONF_DIR): os.makedirs(NET_AGENT_QOS_CONF_DIR) if not os.path.exists(NET_AGENT_LOG_DIR): os.makedirs(NET_AGENT_LOG_DIR) path = pkg_resources.resource_filename(__name__, 'net_agent.cfg') shutil.copy(path, os.path.join(CONF_DIR, 'net_agent.cfg'))
def run(self): install_lib.run(self) dest = os.path.join(self.install_dir, PACKAGE_NAME) subprocess.check_call(['mv', os.path.join(PACKAGE_NAME, 'lib'+FIXLIB_NAME+'.a'), dest ]) txt_path = os.path.join(dest, 'ld_library_path') with open(txt_path, 'w') as out : out.write(':'.join([ os.path.abspath(dest), INKSCAPE_HOME+'/build/lib', ]))
def run(self): install_lib.run(self) if self.dry_run or len(self.distribution.motherapps) == 0: return inst = self.get_finalized_command('install') for app in self.distribution.motherapps: self._copy_tree( os.path.join(*app.split('.')), os.path.join(inst.install_apps, self.dest) ) self.byte_compile(self._pyfiles)
def run(self): """strip debug symbols Returns: """ if 'ENABLE_AMICI_DEBUGGING' in os.environ and os.environ['ENABLE_AMICI_DEBUGGING'] == 'TRUE' and sys.platform == 'darwin': search_dir = os.path.join(os.getcwd(),self.build_dir,'amici') for file in os.listdir(search_dir): if file.endswith('.so'): subprocess.run(['dsymutil',os.path.join(search_dir,file), '-o',os.path.join(search_dir,file + '.dSYM')]) # Continue with the actual installation install_lib.run(self)
def run(self): install_lib.run(self) #sys.stderr.write("\nprefix:" + str((self.distribution.command_obj["install"].prefix))+"\n\n\n") #sys.stderr.write("\ninstall_dir:" + self.install_dir+"\n\n\n") #sys.stderr.write("\npackages:" + str(self.distribution.command_obj["build_py"].packages)+"\n\n\n") for package in self.distribution.command_obj["build_py"].packages: install_dir = os.path.join(*([self.install_dir] + package.split('.'))) fh = open(os.path.join(install_dir, "install_prefix.txt"), "w") fh.write(self.distribution.command_obj["install"].prefix) fh.close() pass pass
def run(self): if INSTALLER == 'pip': script_tmp_dir = self.build_dir else: # setuptools raise DistutilsSetupError("'setuptools' is not supported. Please use 'pip' instead.") def subst_file(_file, vars_2_subst): input_file = os.path.join(script_tmp_dir, _file) output_file = input_file + '.tmp' subst_vars(input_file, output_file, vars_2_subst) os.unlink(input_file) self.move_file(output_file, input_file) inst = self.distribution.command_options.get('install', {}) _file = os.path.join('integron_finder', '__init__.py') subst_file(_file, {'INTEGRONDATA': os.path.join(get_install_data_dir(inst), 'integron_finder')}) _install_lib.run(self)
def run(self): install_lib.run(self) #sys.stderr.write("\nprefix:" + str((self.distribution.command_obj["install"].prefix))+"\n\n\n") #sys.stderr.write("\ninstall_dir:" + self.install_dir+"\n\n\n") #sys.stderr.write("\npackages:" + str(self.distribution.command_obj["build_py"].packages)+"\n\n\n") for package in self.distribution.command_obj["build_py"].packages: install_dir = os.path.join(*([self.install_dir] + package.split('.'))) fh = open(os.path.join(install_dir, "install_prefix.txt"), "w") #fh.write(self.distribution.command_obj["install"].prefix) # Fix for Ubuntu: install_data seems to be the prefix # for where stuff is installed (?) fh.write(self.distribution.command_obj["install"].install_data) fh.close() pass pass
def run(self): install_lib.run(self) # tmp directory we're running from, and final path we want the executable at dir = os.path.dirname(__file__) bin_path = os.path.join(self.install_dir, PACKAGE_NAME, 'skeleton-cgal') # possible precompiled executable in `dev-build` dir # (shouldn't be there in prod, just saves time when I test) builddir = os.path.join(dir, 'cgal-build') #TODO use finr_executable, check results, raise pretty errors cmd_cmake = ['cmake', '../cgal'] cmd_make = ['make'] os.makedirs(builddir) subprocess.check_call(cmd_cmake, cwd=builddir) subprocess.check_call( cmd_cmake, cwd=builddir) # first time around doesn't set c++ flags subprocess.check_call(cmd_make, cwd=builddir) subprocess.check_call(['mv', 'skeleton-tgf', bin_path], cwd=builddir)
def run(self): if INSTALLER == 'pip': script_tmp_dir = self.build_dir else: # setuptools raise DistutilsSetupError( "'setuptools' is not supported. Please use 'pip' instead.") def subst_file(_file, vars_2_subst): input_file = os.path.join(script_tmp_dir, _file) output_file = input_file + '.tmp' subst_vars(input_file, output_file, vars_2_subst) os.unlink(input_file) self.move_file(output_file, input_file) inst = self.distribution.command_options.get('install', {}) _file = os.path.join('integron_finder', '__init__.py') subst_file( _file, { 'INTEGRONDATA': os.path.join(get_install_data_dir(inst), 'integron_finder') }) _install_lib.run(self)
def run(self, *args, **kwargs): install_lib.run(self, *args, **kwargs) path = join(dirname(__file__), 'src', 'pytest-cov.pth') dest = join(self.install_dir, basename(path)) self.copy_file(path, dest) self.outputs = [dest]
def run(self): _write_jpy_config(install_dir=self.install_dir) install_lib.run(self)
def run(self): install_lib.run(self) path = join(dirname(__file__), 'byomkesh_bakshi_hook.pth') dest = join(self.install_dir, basename(path)) self.copy_file(path, dest) self.outputs = [dest]
def run(self): InstallLib.run(self) _maintain_symlinks('library', self.install_dir)
def run(self): install_lib.run(self) path = join(dirname(__file__), 'src', 'pytest-cov.pth') dest = join(self.install_dir, basename(path)) self.copy_file(path, dest) self.outputs = [dest]
def run(self): if babel is not None: self.run_command('compile_catalog') install_lib.run(self)
def run(self): # Store install_dir for future use global gemBS_install_dir gemBS_install_dir = self.install_dir _install_lib.run(self)
def run(self): """Compile catalog before running installation command.""" install_lib.run(self) self.run_command('compile_catalog')
def run(self): build_dir = self.build_dir post_install_script(build_dir) install_lib.run(self)
def run(self): self.run_command('compile_translations') _install_lib.run(self)
def run(self): install_lib.run(self) copy_other_files(self, self.install_dir)
def run(self): InstallLibCommand.run(self)
def run(self): _install_lib.run(self) self.reinitialize_command('install_shlib', install_dir=self.install_dir + '/lib') self.run_command('install_shlib')
def run(self): self.run_command('compile_catalog') install_lib.run(self)
def run(self): _install_lib.run(self) print('========================================================') print(' Run "update-seals -f" after install to generate seals! ') print('========================================================')
def run(self): _install_lib.run(self)
def run(self): check_manifest() build_message_files(self) base.run(self)
def run(self): self.l10n_run() _install_lib.run(self)
def run(self): install_lib.run(self) path = join(dirname(__file__), 'ng_exceptions_hook.pth') dest = join(self.install_dir, basename(path)) self.copy_file(path, dest) self.outputs = [dest]
def run(self): install_lib.run(self) path = os.path.join(os.path.dirname(__file__), "tbvaccine.pth") dest = os.path.join(self.install_dir, os.path.basename(path)) self.copy_file(path, dest) self.outputs = [dest]
def run(self): if not os.path.exists(LIB_TARGET): os.system('make') install_lib.run(self)
def run(self): install_lib.run(self) path = join(dirname(__file__), 'src', 'hunter.pth') dest = join(self.install_dir, basename(path)) self.copy_file(path, dest) self.outputs = [dest]
def run(self): self.run_command("compile_catalog") _install_lib.run(self)