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