本文整理匯總了Python中distutils.command.install.install.finalize_options方法的典型用法代碼示例。如果您正苦於以下問題:Python install.finalize_options方法的具體用法?Python install.finalize_options怎麽用?Python install.finalize_options使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類distutils.command.install.install
的用法示例。
在下文中一共展示了install.finalize_options方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: finalize_options
# 需要導入模塊: from distutils.command.install import install [as 別名]
# 或者: from distutils.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
示例2: finalize_options
# 需要導入模塊: from distutils.command.install import install [as 別名]
# 或者: from distutils.command.install.install import finalize_options [as 別名]
def finalize_options(self):
"""Finalize options"""
_install.finalize_options(self)
示例3: finalize_options
# 需要導入模塊: from distutils.command.install import install [as 別名]
# 或者: from distutils.command.install.install import finalize_options [as 別名]
def finalize_options(self):
_install.finalize_options(self)
示例4: finalize_options
# 需要導入模塊: from distutils.command.install import install [as 別名]
# 或者: from distutils.command.install.install import finalize_options [as 別名]
def finalize_options(self):
_install.finalize_options(self)
if self.root:
self.single_version_externally_managed = True
elif self.single_version_externally_managed:
if not self.root and not self.record:
raise DistutilsArgError(
"You must specify --record or --root when building system"
" packages"
)
示例5: finalize_options
# 需要導入模塊: from distutils.command.install import install [as 別名]
# 或者: from distutils.command.install.install import finalize_options [as 別名]
def finalize_options(self):
build.finalize_options(self)
# The build isn't platform-independent
if self.build_lib == self.build_purelib:
self.build_lib = self.build_platlib