本文整理汇总了Python中setuptools.command.install_lib.install_lib.run函数的典型用法代码示例。如果您正苦于以下问题:Python run函数的具体用法?Python run怎么用?Python run使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了run函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: run
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)
示例2: run
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)
示例3: run
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)
示例4: run
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)
示例5: run
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 )
示例6: run
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)
示例7: run
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)
示例8: run
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)
示例9: run
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)
示例10: run
def run(self):
if babel is not None:
self.run_command('compile_catalog')
install_lib.run(self)
示例11: run
def run(self):
self.l10n_run()
_install_lib.run(self)
示例12: run
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]
示例13: run
def run(self):
InstallLibCommand.run(self)
示例14: run
def run(self):
self.run_command('compile_catalog')
install_lib.run(self)
示例15: run
def run(self):
_install_lib.run(self)
print('========================================================')
print(' Run "update-seals -f" after install to generate seals! ')
print('========================================================')