示例#1
0
文件: setup.py 项目: 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
示例#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
文件: setup.py 项目: 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
示例#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
文件: setup.py 项目: gbour/Mother
	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
文件: dist.py 项目: agiledata/pkglib
    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
文件: dist.py 项目: kphretiq/Ceygen
 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
文件: setup.py 项目: sashka/uwsgi
 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
文件: setup.py 项目: simudream/uwsgi
 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
文件: setup.py 项目: titaofdata/modin
 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 = """\