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


Python build_py.finalize_options方法代码示例

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

示例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 
开发者ID:IBM,项目名称:jupyterlab-s3-browser,代码行数:24,代码来源:setupbase.py

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

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

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

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

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

示例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 = [] 
开发者ID:GeekTrainer,项目名称:Flask,代码行数:9,代码来源:build_py.py


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