本文整理匯總了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)