当前位置: 首页>>代码示例>>Python>>正文


Python Distribution.__init__方法代码示例

本文整理汇总了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
开发者ID:Ichag,项目名称:openerp-client,代码行数:13,代码来源:mydistutils.py

示例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
开发者ID:rsms,项目名称:smisk,代码行数:18,代码来源:setup.py

示例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)
开发者ID:cournape,项目名称:toydist,代码行数:19,代码来源:dist.py

示例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)
开发者ID:pberkes,项目名称:Bento,代码行数:41,代码来源:dist.py

示例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)
开发者ID:JohnLangford,项目名称:vowpal_wabbit,代码行数:5,代码来源:setup.py

示例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)
开发者ID:Eigenstate,项目名称:vmd-python,代码行数:6,代码来源:setup.py

示例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)
开发者ID:ArekSredzki,项目名称:ubcsailbots,代码行数:8,代码来源:setup3lib.py

示例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)
开发者ID:cobbler,项目名称:cobbler,代码行数:7,代码来源:setup.py

示例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)
开发者ID:zjc5415,项目名称:pyq,代码行数:8,代码来源:setup.py


注:本文中的setuptools.Distribution.__init__方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。