本文整理汇总了Python中setuptools.command.build_py.build_py.finalize_options方法的典型用法代码示例。如果您正苦于以下问题:Python build_py.finalize_options方法的具体用法?Python build_py.finalize_options怎么用?Python build_py.finalize_options使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类setuptools.command.build_py.build_py
的用法示例。
在下文中一共展示了build_py.finalize_options方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: combine_commands
# 需要导入模块: from setuptools.command.build_py import build_py [as 别名]
# 或者: from setuptools.command.build_py.build_py import finalize_options [as 别名]
def combine_commands(*commands):
"""Return a Command that combines several commands."""
class CombinedCommand(Command):
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 setuptools.command.build_py import build_py [as 别名]
# 或者: from setuptools.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 setuptools.command.build_py import build_py [as 别名]
# 或者: from setuptools.command.build_py.build_py import finalize_options [as 别名]
def update_package_data(distribution):
"""update package_data to catch changes during setup"""
build_py = distribution.get_command_obj('build_py')
# distribution.package_data = find_package_data()
# re-init build_py options which load package_data
build_py.finalize_options()
示例4: finalize_options
# 需要导入模块: from setuptools.command.build_py import build_py [as 别名]
# 或者: from setuptools.command.build_py.build_py import finalize_options [as 别名]
def finalize_options(self):
pass
示例5: update_package_data
# 需要导入模块: from setuptools.command.build_py import build_py [as 别名]
# 或者: from setuptools.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()
示例6: update_data_files
# 需要导入模块: from setuptools.command.build_py import build_py [as 别名]
# 或者: from setuptools.command.build_py.build_py import finalize_options [as 别名]
def update_data_files(distribution):
"""Update package_data to catch changes during setup."""
build_py = distribution.get_command_obj('build_py')
distribution.data_files = get_data_files()
# distribution.package_data = find_package_data()
# re-init build_py options which load package_data
build_py.finalize_options()
示例7: update_package_data
# 需要导入模块: from setuptools.command.build_py import build_py [as 别名]
# 或者: from setuptools.command.build_py.build_py import finalize_options [as 别名]
def update_package_data(distribution):
"""Update package_data to catch changes during setup."""
build_py = distribution.get_command_obj('build_py')
# distribution.package_data = find_package_data()
# re-init build_py options which load package_data
build_py.finalize_options()
示例8: finalize_options
# 需要导入模块: from setuptools.command.build_py import build_py [as 别名]
# 或者: from setuptools.command.build_py.build_py import finalize_options [as 别名]
def finalize_options(self):
_build_py.finalize_options(self)