Ejemplo n.º 1
0
Archivo: setup.py Proyecto: ttuna/uwsgi
 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
Ejemplo n.º 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"))
Ejemplo n.º 3
0
Archivo: setup.py Proyecto: comel/uwsgi
 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
Ejemplo n.º 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)
Ejemplo n.º 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 = """\
Ejemplo n.º 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)
Ejemplo n.º 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', [])]
Ejemplo n.º 8
0
Archivo: setup.py Proyecto: 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)
Ejemplo n.º 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
Ejemplo n.º 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
Ejemplo n.º 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
Ejemplo n.º 12
0
 def __init__(self, *args, **kwargs):
     Distribution.__init__(self, *args, **kwargs)
     setuptools_ext.snaek_rust_modules(self, 'snaek_rust_modules', [
         ('snaek._bindgen', 'rust/'),
     ])
Ejemplo n.º 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
Ejemplo n.º 14
0
 def __init__(self, *args, **kwargs):
     Distribution.__init__(self, *args, **kwargs)
     self.cmdclass['DjInstaller'] = DjInstaller
Ejemplo n.º 15
0
 def __init__(self, *attrs):
     Distribution.__init__(self, *attrs)
     self.cmdclass['build_py'] = MyPyBuilder
     self.cmdclass['install_lib'] = MyLibInstaller
Ejemplo n.º 16
0
 def __init__(self, *args, **kwargs):
     Distribution.__init__(self, *args, **kwargs)
     self.cmdclass['DjInstaller'] = DjInstaller
Ejemplo n.º 17
0
 def __init__(self, *args, **kwargs):
     self.generation_hooks = []
     _Distribution.__init__(self, *args, **kwargs)
Ejemplo n.º 18
0
 def __init__(self, *attrs):
     Distribution.__init__(self, *attrs)
     self.cmdclass['install'] = uWSGIInstall
     self.cmdclass['install_lib'] = uWSGIInstallLib
     self.cmdclass['build_ext'] = uWSGIBuilder
Ejemplo n.º 19
0
Archivo: setup.py Proyecto: ahua/c
 def __init__(self, *attrs):
     Distribution.__init__(self, *attrs)
     self.cmdclass["install"] = uWSGIInstall
     self.cmdclass["install_lib"] = uWSGIInstallLib
     self.cmdclass["build_ext"] = uWSGIBuilder
Ejemplo n.º 20
0
 def __init__(self, *attrs):
     Distribution.__init__(self, *attrs)
     self.cmdclass['install'] = uWSGIInstall
     self.cmdclass['install_lib'] = uWSGIInstallLib
     self.cmdclass['build_ext'] = uWSGIBuilder
Ejemplo n.º 21
0
 def __init__(self, *args, **kwargs):
     self.sdist_requires = None
     Distribution.__init__(self, *args, **kwargs)
Ejemplo n.º 22
0
 def __init__(self, *args, **kwargs):
     self.generation_hooks = []
     _Distribution.__init__(self, *args, **kwargs)
Ejemplo n.º 23
0
 def __init__(self, *args, **kwargs):
     self.sdist_requires = None
     Distribution.__init__(self, *args, **kwargs)
Ejemplo n.º 24
0
 def __init__(self, *attrs):
     Distribution.__init__(self, *attrs)
     if HAS_WHEEL:
         self.cmdclass["bdist_wheel"] = ModinWheel
Ejemplo n.º 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 = """\