当前位置: 首页>>代码示例>>Python>>正文


Python build_py.finalize_options方法代码示例

本文整理汇总了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 
开发者ID:K3D-tools,项目名称:K3D-jupyter,代码行数:22,代码来源:setupbase.py

示例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 
开发者ID:jupyter,项目名称:jupyter-packaging,代码行数:23,代码来源:setupbase.py

示例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() 
开发者ID:quantopian,项目名称:qgrid,代码行数:8,代码来源:setup.py

示例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 
开发者ID:quantopian,项目名称:qgrid,代码行数:4,代码来源:setup.py

示例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() 
开发者ID:K3D-tools,项目名称:K3D-jupyter,代码行数:6,代码来源:setupbase.py

示例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() 
开发者ID:maartenbreddels,项目名称:ipyvolume,代码行数:9,代码来源:setup.py

示例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() 
开发者ID:OpenGeoscience,项目名称:geonotebook,代码行数:8,代码来源:setup.py

示例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) 
开发者ID:kevinpt,项目名称:ripyl,代码行数:4,代码来源:setup.py


注:本文中的setuptools.command.build_py.build_py.finalize_options方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。