Пример #1
0
 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
Пример #2
0
    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"))
Пример #3
0
 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
Пример #4
0
 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)
Пример #5
0
 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 = """\
Пример #6
0
    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)
Пример #7
0
 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', [])]
Пример #8
0
Файл: setup.py Проект: bru08/mot
    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)
Пример #9
0
	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
Пример #10
0
    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
Пример #11
0
    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
Пример #12
0
 def __init__(self, *args, **kwargs):
     Distribution.__init__(self, *args, **kwargs)
     setuptools_ext.snaek_rust_modules(self, 'snaek_rust_modules', [
         ('snaek._bindgen', 'rust/'),
     ])
Пример #13
0
 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
Пример #14
0
 def __init__(self, *args, **kwargs):
     Distribution.__init__(self, *args, **kwargs)
     self.cmdclass['DjInstaller'] = DjInstaller
Пример #15
0
 def __init__(self, *attrs):
     Distribution.__init__(self, *attrs)
     self.cmdclass['build_py'] = MyPyBuilder
     self.cmdclass['install_lib'] = MyLibInstaller
Пример #16
0
 def __init__(self, *args, **kwargs):
     Distribution.__init__(self, *args, **kwargs)
     self.cmdclass['DjInstaller'] = DjInstaller
Пример #17
0
 def __init__(self, *args, **kwargs):
     self.generation_hooks = []
     _Distribution.__init__(self, *args, **kwargs)
Пример #18
0
 def __init__(self, *attrs):
     Distribution.__init__(self, *attrs)
     self.cmdclass['install'] = uWSGIInstall
     self.cmdclass['install_lib'] = uWSGIInstallLib
     self.cmdclass['build_ext'] = uWSGIBuilder
Пример #19
0
Файл: setup.py Проект: ahua/c
 def __init__(self, *attrs):
     Distribution.__init__(self, *attrs)
     self.cmdclass["install"] = uWSGIInstall
     self.cmdclass["install_lib"] = uWSGIInstallLib
     self.cmdclass["build_ext"] = uWSGIBuilder
Пример #20
0
 def __init__(self, *attrs):
     Distribution.__init__(self, *attrs)
     self.cmdclass['install'] = uWSGIInstall
     self.cmdclass['install_lib'] = uWSGIInstallLib
     self.cmdclass['build_ext'] = uWSGIBuilder
Пример #21
0
 def __init__(self, *args, **kwargs):
     self.sdist_requires = None
     Distribution.__init__(self, *args, **kwargs)
Пример #22
0
 def __init__(self, *args, **kwargs):
     self.generation_hooks = []
     _Distribution.__init__(self, *args, **kwargs)
Пример #23
0
 def __init__(self, *args, **kwargs):
     self.sdist_requires = None
     Distribution.__init__(self, *args, **kwargs)
Пример #24
0
 def __init__(self, *attrs):
     Distribution.__init__(self, *attrs)
     if HAS_WHEEL:
         self.cmdclass["bdist_wheel"] = ModinWheel
Пример #25
0
 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 = """\