本文整理汇总了Python中distutils.command.build_py.build_py.finalize_options方法的典型用法代码示例。如果您正苦于以下问题:Python build_py.finalize_options方法的具体用法?Python build_py.finalize_options怎么用?Python build_py.finalize_options使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类distutils.command.build_py.build_py
的用法示例。
在下文中一共展示了build_py.finalize_options方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: combine_commands
# 需要导入模块: from distutils.command.build_py import build_py [as 别名]
# 或者: from distutils.command.build_py.build_py import finalize_options [as 别名]
def combine_commands(*commands):
"""Return a Command that combines several commands."""
class CombinedCommand(Command):
user_options = []
def initialize_options(self):
self.commands = []
for C in commands:
self.commands.append(C(self.distribution))
for c in self.commands:
c.initialize_options()
def finalize_options(self):
for c in self.commands:
c.finalize_options()
def run(self):
for c in self.commands:
c.run()
return CombinedCommand
示例2: combine_commands
# 需要导入模块: from distutils.command.build_py import build_py [as 别名]
# 或者: from distutils.command.build_py.build_py import finalize_options [as 别名]
def combine_commands(*commands):
"""Return a Command that combines several commands."""
class CombinedCommand(Command):
user_options = []
def initialize_options(self):
self.commands = []
for C in commands:
self.commands.append(C(self.distribution))
for c in self.commands:
c.initialize_options()
def finalize_options(self):
for c in self.commands:
c.finalize_options()
def run(self):
for c in self.commands:
c.run()
return CombinedCommand
示例3: update_package_data
# 需要导入模块: from distutils.command.build_py import build_py [as 别名]
# 或者: from distutils.command.build_py.build_py import finalize_options [as 别名]
def update_package_data(distribution):
"""update build_py options to get package_data changes"""
build_py = distribution.get_command_obj('build_py')
build_py.finalize_options()
示例4: finalize_options
# 需要导入模块: from distutils.command.build_py import build_py [as 别名]
# 或者: from distutils.command.build_py.build_py import finalize_options [as 别名]
def finalize_options(self):
pass
示例5: finalize_options
# 需要导入模块: from distutils.command.build_py import build_py [as 别名]
# 或者: from distutils.command.build_py.build_py 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_py import build_py [as 别名]
# 或者: from distutils.command.build_py.build_py import finalize_options [as 别名]
def finalize_options(self):
_build_py.finalize_options(self)
self.set_undefined_options(
'build',
('rpm_version', 'rpm_version')
)
示例7: update_package_data
# 需要导入模块: from distutils.command.build_py import build_py [as 别名]
# 或者: from distutils.command.build_py.build_py import finalize_options [as 别名]
def update_package_data(distribution):
"""update build_py options to get package_data changes"""
build_py = distribution.get_command_obj("build_py")
build_py.finalize_options()
示例8: finalize_options
# 需要导入模块: from distutils.command.build_py import build_py [as 别名]
# 或者: from distutils.command.build_py.build_py import finalize_options [as 别名]
def finalize_options(self):
_build_py.finalize_options(self)
self.package_data = self.distribution.package_data
self.exclude_package_data = self.distribution.exclude_package_data or {}
if 'data_files' in self.__dict__: del self.__dict__['data_files']
self.__updated_files = []
self.__doctests_2to3 = []