本文整理汇总了Python中setuptools.command.install.install.finalize_options方法的典型用法代码示例。如果您正苦于以下问题:Python install.finalize_options方法的具体用法?Python install.finalize_options怎么用?Python install.finalize_options使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类setuptools.command.install.install
的用法示例。
在下文中一共展示了install.finalize_options方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: finalize_options
# 需要导入模块: from setuptools.command.install import install [as 别名]
# 或者: from setuptools.command.install.install import finalize_options [as 别名]
def finalize_options(self):
self.distribution.data_files.append((os.path.join(self.sysconfdir, 'pcocc'),
glob.glob('confs/*.yaml')))
self.distribution.data_files.append((os.path.join(self.sysconfdir, 'pcocc/helpers/examples/'),
glob.glob('helpers/examples/*')))
self.distribution.data_files.append((os.path.join(self.mandir, 'man1'),
glob.glob('docs/build/man/*.1')))
self.distribution.data_files.append((os.path.join(self.mandir, 'man5'),
glob.glob('docs/build/man/*.5')))
self.distribution.data_files.append((os.path.join(self.mandir, 'man7'),
glob.glob('docs/build/man/*.7')))
self.distribution.data_files.append((os.path.join(self.sysconfdir, 'slurm/lua.d'),
['plugins/slurm/vm-setup.lua']))
if self.unitdir:
self.distribution.data_files+=[(self.unitdir, ['dist/pkeyd.service'])]
self.distribution.data_files += recursive_scan_data_files(self.pkgdocdir, 'docs/build/html/')
install.finalize_options(self)
示例2: finalize_options
# 需要导入模块: from setuptools.command.install import install [as 别名]
# 或者: from setuptools.command.install.install import finalize_options [as 别名]
def finalize_options(self):
_install.finalize_options(self)
install_suffix = os.path.relpath(
self.install_lib, self.install_libbase,
)
if install_suffix == '.':
distutils.log.info('skipping install of .pth during easy-install')
elif install_suffix == self.extra_path[1]:
self.install_lib = self.install_libbase
distutils.log.info(
"will install .pth to '%s.pth'",
os.path.join(self.install_lib, self.extra_path[0]),
)
else:
raise AssertionError(
'unexpected install_suffix',
self.install_lib, self.install_libbase, install_suffix,
)
示例3: finalize_options
# 需要导入模块: from setuptools.command.install import install [as 别名]
# 或者: from setuptools.command.install.install import finalize_options [as 别名]
def finalize_options(self):
if not self.large_data_dir is None:
self.large_data_dir = os.path.abspath(os.path.expanduser(self.large_data_dir))
install.finalize_options(self)
示例4: finalize_options
# 需要导入模块: from setuptools.command.install import install [as 别名]
# 或者: from setuptools.command.install.install import finalize_options [as 别名]
def finalize_options(self):
install_command.finalize_options(self)
示例5: finalize_options
# 需要导入模块: from setuptools.command.install import install [as 别名]
# 或者: from setuptools.command.install.install import finalize_options [as 别名]
def finalize_options(self):
install.finalize_options(self)
if self.distribution.has_ext_modules():
self.install_lib = self.install_platlib
示例6: finalize_options
# 需要导入模块: from setuptools.command.install import install [as 别名]
# 或者: from setuptools.command.install.install import finalize_options [as 别名]
def finalize_options(self):
ret = InstallCommandBase.finalize_options(self)
self.install_headers = os.path.join(self.install_purelib,
'tensorflow', 'include')
return ret
示例7: finalize_options
# 需要导入模块: from setuptools.command.install import install [as 别名]
# 或者: from setuptools.command.install.install import finalize_options [as 别名]
def finalize_options(self):
install.finalize_options(self)
self.install_lib = self.install_platlib
示例8: finalize_options
# 需要导入模块: from setuptools.command.install import install [as 别名]
# 或者: from setuptools.command.install.install import finalize_options [as 别名]
def finalize_options(self):
if not os.path.exists('./xcffib'):
print("It looks like you need to generate the binding.")
print("please run 'make xcffib' or 'make check'.")
sys.exit(1)
build.finalize_options(self)
示例9: finalize_options
# 需要导入模块: from setuptools.command.install import install [as 别名]
# 或者: from setuptools.command.install.install import finalize_options [as 别名]
def finalize_options(self):
_bdist_wheel.finalize_options(self)
# Mark us as not a pure python package (we have platform specific C/C++ code)
self.root_is_pure = False
示例10: finalize_options
# 需要导入模块: from setuptools.command.install import install [as 别名]
# 或者: from setuptools.command.install.install import finalize_options [as 别名]
def finalize_options(self):
ret = InstallCommandBase.finalize_options(self)
return ret
示例11: finalize_options
# 需要导入模块: from setuptools.command.install import install [as 别名]
# 或者: from setuptools.command.install.install import finalize_options [as 别名]
def finalize_options(self):
install.finalize_options(self)
if self.no_ml:
dist = self.distribution
dist.packages=find_packages(exclude=[
'tests',
'tests.*',
'talon.signature',
'talon.signature.*',
])
for not_required in ['numpy', 'scipy', 'scikit-learn==0.16.1']:
dist.install_requires.remove(not_required)
示例12: finalize_options
# 需要导入模块: from setuptools.command.install import install [as 别名]
# 或者: from setuptools.command.install.install import finalize_options [as 别名]
def finalize_options(self):
_build_ext.finalize_options(self)
# The argument parsing will result in self.define being a string, but
# it has to be a list of 2-tuples.
# Multiple symbols can be separated with semi-colons.
self.define = _process_define(self)
cmake_opts.extend(self.define)
if self.symengine_dir:
cmake_opts.extend([('SymEngine_DIR', self.symengine_dir)])
if self.generator:
cmake_generator[0] = self.generator
cmake_build_type[0] = self.build_type
示例13: finalize_options
# 需要导入模块: from setuptools.command.install import install [as 别名]
# 或者: from setuptools.command.install.install import finalize_options [as 别名]
def finalize_options(self):
bdist_wheel.finalize_options(self)
# Mark us as not a pure python package
self.root_is_pure = False
示例14: finalize_options
# 需要导入模块: from setuptools.command.install import install [as 别名]
# 或者: from setuptools.command.install.install import finalize_options [as 别名]
def finalize_options(self):
install.finalize_options(self)
if not self.do_not_fail:
raise RuntimeError('No one asked me not to fail, so I did')