當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。