本文整理汇总了Python中distutils.command.build.build.finalize_options方法的典型用法代码示例。如果您正苦于以下问题:Python build.finalize_options方法的具体用法?Python build.finalize_options怎么用?Python build.finalize_options使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类distutils.command.build.build
的用法示例。
在下文中一共展示了build.finalize_options方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: finalize_options
# 需要导入模块: from distutils.command.build import build [as 别名]
# 或者: from distutils.command.build.build import finalize_options [as 别名]
def finalize_options(self):
if self.parallel:
try:
self.parallel = int(self.parallel)
except ValueError:
raise ValueError("--parallel/-j argument must be an integer")
build_scripts = self.build_scripts
old_build.finalize_options(self)
plat_specifier = ".%s-%s" % (get_platform(), sys.version[0:3])
if build_scripts is None:
self.build_scripts = os.path.join(self.build_base,
'scripts' + plat_specifier)
示例2: finalize_options
# 需要导入模块: from distutils.command.build import build [as 别名]
# 或者: from distutils.command.build.build import finalize_options [as 别名]
def finalize_options(self):
build.finalize_options(self)
# self.set_undefined_options("build_ext", ("download_dir", "download_dir"))
if self.download_dir:
openfst_tar_gz = os.path.join(self.download_dir, self.openfst_basename)
assert os.path.isfile(openfst_tar_gz), (
"File %s does not exist" % openfst_tar_gz
)
else:
self.download_dir = self.build_temp
示例3: finalize_options
# 需要导入模块: from distutils.command.build import build [as 别名]
# 或者: from distutils.command.build.build import finalize_options [as 别名]
def finalize_options(self):
build_scripts = self.build_scripts
old_build.finalize_options(self)
plat_specifier = ".%s-%s" % (get_platform(), sys.version[0:3])
if build_scripts is None:
self.build_scripts = os.path.join(self.build_base,
'scripts' + plat_specifier)
示例4: finalize_options
# 需要导入模块: from distutils.command.build import build [as 别名]
# 或者: from distutils.command.build.build 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)
示例5: finalize_options
# 需要导入模块: from distutils.command.build import build [as 别名]
# 或者: from distutils.command.build.build import finalize_options [as 别名]
def finalize_options(self):
_build.finalize_options(self)
if self.build_doc is None:
self.build_doc = "%s/doc" % self.build_base
示例6: finalize_options
# 需要导入模块: from distutils.command.build import build [as 别名]
# 或者: from distutils.command.build.build import finalize_options [as 别名]
def finalize_options(self):
_build_py.finalize_options(self)
self.set_undefined_options(
'build',
('rpm_version', 'rpm_version')
)
示例7: finalize_options
# 需要导入模块: from distutils.command.build import build [as 别名]
# 或者: from distutils.command.build.build import finalize_options [as 别名]
def finalize_options(self):
self.distribution.ext_modules = get_ext_modules()
build.finalize_options(self)