本文整理汇总了Python中setuptools.Distribution.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python Distribution.__init__方法的具体用法?Python Distribution.__init__怎么用?Python Distribution.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类setuptools.Distribution
的用法示例。
在下文中一共展示了Distribution.__init__方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from setuptools import Distribution [as 别名]
# 或者: from setuptools.Distribution import __init__ [as 别名]
def __init__(self, attrs=None):
self.translations = []
Distribution.__init__(self, attrs)
self.cmdclass = {
'install_mo' : install_mo,
'build_mo' : build_mo,
# 'build_conf' : build_conf,
'build_ext': BuildExt,
'build_scripts': build_scripts_app,
}
self.command_obj['build_scripts'] = None
示例2: __init__
# 需要导入模块: from setuptools import Distribution [as 别名]
# 或者: from setuptools.Distribution import __init__ [as 别名]
def __init__(self, attrs=None):
Distribution.__init__(self, attrs)
self.cmdclass = {
'build': build,
'build_ext': build_ext,
'sdist': sdist,
'config': config,
'docs': sphinx_build,
'clean': clean,
}
try:
shell_cmd('which dpkg-buildpackage')
self.cmdclass['debian'] = debian
except IOError:
# Not a debian system or dpkg-buildpackage not installed
pass
示例3: __init__
# 需要导入模块: from setuptools import Distribution [as 别名]
# 或者: from setuptools.Distribution import __init__ [as 别名]
def __init__(self, attrs=None):
if attrs is None:
attrs = {}
attrs = _setup_cmd_classes(attrs)
self.package = PackageDescription.from_yaml("setup.yaml")
attrs.update({
"name": self.package.name,
"version": str(self.package.version),
"long_description": self.package.description,
"description": self.package.summary,
"packages": self.package.packages,
})
OldDistribution.__init__(self, attrs)
示例4: __init__
# 需要导入模块: from setuptools import Distribution [as 别名]
# 或者: from setuptools.Distribution import __init__ [as 别名]
def __init__(self, attrs=None):
if attrs is None:
attrs = {}
if not "bento_info" in attrs:
bento_info = "bento.info"
else:
bento_info = attrs["bento.info"]
self.pkg = PackageDescription.from_file(bento_info)
self.package_options = PackageOptions.from_file(bento_info)
attrs = _setup_cmd_classes(attrs)
d = pkg_to_distutils_meta(self.pkg)
attrs.update(d)
Distribution.__init__(self, attrs)
self.packages = self.pkg.packages
self.py_modules = self.pkg.py_modules
if hasattr(self, "entry_points"):
if self.entry_points is None:
self.entry_points = {}
console_scripts = [e.full_representation() for e in self.pkg.executables.values()]
if "console_scripts" in self.entry_points:
self.entry_points["console_scripts"].extend(console_scripts)
else:
self.entry_points["console_scripts"] = console_scripts
source_root = os.getcwd()
build_root = os.path.join(source_root, "build")
root = create_root_with_source_tree(source_root, build_root)
self.top_node = root._ctx.srcnode
self.build_node = root._ctx.bldnode
self.run_node = root._ctx.srcnode
self.global_context = global_context_factory(self.package_options)
modules = set_main(self.top_node, self.build_node, self.pkg)
示例5: __init__
# 需要导入模块: from setuptools import Distribution [as 别名]
# 或者: from setuptools.Distribution import __init__ [as 别名]
def __init__(self, attrs=None):
self.vcpkg_root = None
_distribution.__init__(self, attrs)
示例6: __init__
# 需要导入模块: from setuptools import Distribution [as 别名]
# 或者: from setuptools.Distribution import __init__ [as 别名]
def __init__(self, *args, **kwargs):
self.egl = False
self.debug = False
Distribution.__init__(self, *args, **kwargs)
示例7: __init__
# 需要导入模块: from setuptools import Distribution [as 别名]
# 或者: from setuptools.Distribution import __init__ [as 别名]
def __init__(self, attrs=None):
self.test_dirs = []
self.test_build_dir = None
self.doctest_exts = ['.py', '.rst']
self.pyversion_patching = False
_Distribution.__init__(self, attrs)
示例8: __init__
# 需要导入模块: from setuptools import Distribution [as 别名]
# 或者: from setuptools.Distribution import __init__ [as 别名]
def __init__(self, *args, **kwargs):
self.configure_files = []
self.configure_values = {}
self.man_pages = []
_Distribution.__init__(self, *args, **kwargs)
示例9: __init__
# 需要导入模块: from setuptools import Distribution [as 别名]
# 或者: from setuptools.Distribution import __init__ [as 别名]
def __init__(self, attrs=None):
self.k_modules = None
self.q_modules = None
self.qext_modules = None
self.executables = None
_Distribution.__init__(self, attrs)