setupbase.py
def command_for_func(func):
    """Create a command that calls the given function."""

    class FuncCommand(BaseCommand):

        def run(self):
            func()
            update_package_data(self.distribution)

    return FuncCommand
def command_for_func(func):
    class FuncCommand(BaseCommand):

        def run(self):
            func()
            update_package_data(self.distribution)

    return FuncCommand
def command_for_func ( func ) : class FuncCommand ( BaseCommand ) : def run ( self ) : func ( ) update_package_data ( self . distribution ) return FuncCommand
Create a command that calls the given function.
Create a command that calls the given function .