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