def __init__(self, *attrs): Distribution.__init__(self, *attrs) self.cmdclass['install'] = uWSGIInstall self.cmdclass['install_lib'] = uWSGIInstallLib self.cmdclass['build_ext'] = uWSGIBuilder if HAS_WHEEL: self.cmdclass['bdist_wheel'] = uWSGIWheel
def __init__(self, *attrs): Distribution.__init__(self, *attrs) self.cmdclass['install_lib'] = RustInstallLib self.cmdclass['bdist_wheel'] = RustBdistWheel self.cmdclass['build_rust'] = build_rust_cmdclass(debug=debug) print("Building in {} mode".format("debug" if debug else "release"))
def __init__(self, attrs=None): self.executables = None if attrs: executables = attrs.get("executables") if executables: del attrs["executables"] self.executables = executables Distribution.__init__(self, attrs)
def __init__(self, attrs=None): #It's important to define potions before to call __init__ #otherwise AttributeError: UsageDistribution instance has no attribute 'conf_files' #self.doc_files = None self.fix_prefix = None self.fix_scripts = None Distribution.__init__(self, attrs=attrs) self.common_usage = """\
def __init__(self, attrs): cmdclass = self.default_cmdclass.copy() cmdclass.update(attrs.get('cmdclass', ())) attrs['cmdclass'] = cmdclass if sys.version_info < (3, ): BaseDistribution.__init__(self, attrs) else: super(Distribution, self).__init__(attrs)
def __init__(self, attrs=None): Distribution.__init__(self, attrs) # The values used for the name and sources in the Extension below are # not important, because we override the build_ext command above. # The normal C extension building logic is never invoked, and is # replaced with our own custom logic. However, ext_modules cannot be # empty, because this signals to other parts of distutils that our # package contains C extensions and thus needs to be built for # different platforms separately. self.ext_modules = [Extension('h3c', [])]
def __init__(self, attrs=None): if attrs is None: attrs = dict() cmdclass = attrs.get('cmdclass', dict()) cmdclass['build_sphinx'] = BuildDocCommand cmdclass['test'] = RunTestCommand attrs['cmdclass'] = cmdclass # call parent __init__ in old style class Distribution.__init__(self, attrs=attrs)
def __init__(self, *args, **kwargs): # add new option for motherapps self.motherapps = [] Distribution.__init__(self, *args, **kwargs) # automatically install our install_lib version if not 'install' in self.cmdclass: self.cmdclass['install']= _install if not 'install_lib' in self.cmdclass: self.cmdclass['install_lib']= _install_lib
def __init__(self, attrs=None): self.attrs = dict(attrs or {}) self.original_cwd = self.attrs.get('original_cwd', os.getcwd()) self.fetched_setup_requires = [] self.trace_ws = False # Track all `setup_requires` dependencies which are fetched def ws_callback(dist): if self.trace_ws: self.fetched_setup_requires.append(dist) pkg_resources.working_set.subscribe(ws_callback) self.trace_ws = True _Distribution.__init__(self, attrs=attrs) self.trace_ws = False
def __init__(self, *args, **kwargs): Distribution.__init__(self, *args, **kwargs) setuptools_ext.snaek_rust_modules(self, 'snaek_rust_modules', [ ('snaek._bindgen', 'rust/'), ])
def __init__(self, attrs): self.cflags = None # Default CFLAGS overridable by setup.cfg self.ldflags = None # Default LDFLAGS overridable by setup.cfg Distribution.__init__(self, attrs) self.cmdclass['build_ext'] = build_ext self.cmdclass['test'] = test
def __init__(self, *args, **kwargs): Distribution.__init__(self, *args, **kwargs) self.cmdclass['DjInstaller'] = DjInstaller
def __init__(self, *attrs): Distribution.__init__(self, *attrs) self.cmdclass['build_py'] = MyPyBuilder self.cmdclass['install_lib'] = MyLibInstaller
def __init__(self, *args, **kwargs): self.generation_hooks = [] _Distribution.__init__(self, *args, **kwargs)
def __init__(self, *attrs): Distribution.__init__(self, *attrs) self.cmdclass['install'] = uWSGIInstall self.cmdclass['install_lib'] = uWSGIInstallLib self.cmdclass['build_ext'] = uWSGIBuilder
def __init__(self, *attrs): Distribution.__init__(self, *attrs) self.cmdclass["install"] = uWSGIInstall self.cmdclass["install_lib"] = uWSGIInstallLib self.cmdclass["build_ext"] = uWSGIBuilder
def __init__(self, *args, **kwargs): self.sdist_requires = None Distribution.__init__(self, *args, **kwargs)
def __init__(self, *attrs): Distribution.__init__(self, *attrs) if HAS_WHEEL: self.cmdclass["bdist_wheel"] = ModinWheel
def __init__(self, attrs=None): # It's important to define options before to call __init__ # otherwise AttributeError: UsageDistribution instance has no attribute 'conf_files' self.fix_prefix = None Distribution.__init__(self, attrs=attrs) self.common_usage = """\