Python setuptools.command.build_py.build_py.finalize_options() Examples

The following are 26 code examples of setuptools.command.build_py.build_py.finalize_options(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module setuptools.command.build_py.build_py , or try the search function .
Example #1
Source File: setupbase.py    From jupyter-packaging with BSD 3-Clause "New" or "Revised" License 6 votes vote down vote up
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 
Example #2
Source File: setupbase.py    From K3D-jupyter with MIT License 6 votes vote down vote up
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 
Example #3
Source File: setup.py    From ipyvuetify with MIT License 5 votes vote down vote up
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() 
Example #4
Source File: setupbase.py    From jupyter-packaging with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
def finalize_options(self):
        pass 
Example #5
Source File: setupbase.py    From jupyter-packaging with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
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() 
Example #6
Source File: setup.py    From itkwidgets with Apache License 2.0 5 votes vote down vote up
def finalize_options(self):
        pass 
Example #7
Source File: setup.py    From itkwidgets with Apache License 2.0 5 votes vote down vote up
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() 
Example #8
Source File: setup.py    From ripyl with GNU Lesser General Public License v3.0 5 votes vote down vote up
def finalize_options(self):
        _build_py.finalize_options(self) 
Example #9
Source File: setup.py    From ipysheet with MIT License 5 votes vote down vote up
def finalize_options(self):
        pass 
Example #10
Source File: setup.py    From ipysheet with MIT License 5 votes vote down vote up
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() 
Example #11
Source File: setup.py    From geonotebook with Apache License 2.0 5 votes vote down vote up
def finalize_options(self):
        pass 
Example #12
Source File: setup.py    From geonotebook with Apache License 2.0 5 votes vote down vote up
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() 
Example #13
Source File: setup.py    From ipyvuetify with MIT License 5 votes vote down vote up
def finalize_options(self):
        pass 
Example #14
Source File: setup.py    From ipyvuetify with MIT License 5 votes vote down vote up
def finalize_options(self):
        pass 
Example #15
Source File: setup.py    From qgrid with Apache License 2.0 5 votes vote down vote up
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() 
Example #16
Source File: setup.py    From jupyter-ros with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
def finalize_options(self):
        pass 
Example #17
Source File: setup.py    From jupyter-ros with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
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() 
Example #18
Source File: setup.py    From jupyter-cadquery with Apache License 2.0 5 votes vote down vote up
def finalize_options(self):
        pass 
Example #19
Source File: setup.py    From jupyter-cadquery with Apache License 2.0 5 votes vote down vote up
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() 
Example #20
Source File: setup.py    From ipyvolume with MIT License 5 votes vote down vote up
def finalize_options(self):
        pass 
Example #21
Source File: setup.py    From ipyvolume with MIT License 5 votes vote down vote up
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() 
Example #22
Source File: setup.py    From widget-cookiecutter with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
def finalize_options(self):
        pass 
Example #23
Source File: setup.py    From widget-cookiecutter with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
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() 
Example #24
Source File: setupbase.py    From K3D-jupyter with MIT License 5 votes vote down vote up
def finalize_options(self):
        pass 
Example #25
Source File: setupbase.py    From K3D-jupyter with MIT License 5 votes vote down vote up
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() 
Example #26
Source File: setup.py    From qgrid with Apache License 2.0 5 votes vote down vote up
def finalize_options(self):
        pass