def __init__(self, attrs=None): self.vcpkg_root = None self.enable_boost_cmake = None self.cmake_options = None self.cmake_generator = None self.debug = False _distribution.__init__(self, attrs)
def __init__ (self, attrs=None): # support for pkg data self.package_data = {} # PEP 314 self.provides = None self.requires = None self.obsoletes = None # supports 'executables' keyword self.executables = None cls_Distribution.__init__(self, attrs)
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
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
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)
def __init__(self, attrs=None): self.ram_units = None Distribution.__init__(self, attrs) self.cmdclass.setdefault('build_ram', build_ram) self.cmdclass.setdefault('install_ram', install_ram) self.ram_dists = {} for ram_dst, ram_src in self.ram_units or list(): for srcpath, dirs, files in os.walk(ram_src): dstpath = os.path.normpath( os.path.join(ram_dst, os.path.relpath(srcpath, ram_src))) scripts = [] modules = [] various = [] for _ in files: _name, _ext = os.path.splitext(_) _path = os.path.join(srcpath, _) if os.path.isfile(_path) and os.access(_path, os.X_OK): scripts.append(_path) elif _ext == '.py': modules.append(_name) else: various.append(_) self.ram_dists[dstpath, srcpath] = Distribution( dict( scripts=scripts, package_dir={'': srcpath}, packages=[''], package_data={'': various}, options=dict(install_scripts={ 'no_ep': True, }, ), cmdclass={ 'egg_info': DummyCommand, 'install_egg_info': DummyCommand, }, script_name=self.script_name, script_args=self.script_args, ))
def __init__(self, attrs=None): _Distribution.__init__(self, attrs) if not self.ext_modules: return for idx in range(len(self.ext_modules) - 1, -1, -1): ext = self.ext_modules[idx] if not isinstance(ext, Extension): continue setattr(self, ext.attr_name, None) self.global_options = [ (ext.option_name, None, "include %s (default if %s is available)" % (ext.feature_description, ext.feature_name)), (ext.neg_option_name, None, "exclude %s" % ext.feature_description), ] + self.global_options self.negative_opt = self.negative_opt.copy() self.negative_opt[ext.neg_option_name] = ext.option_name
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) 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(package_options) mods = set_main(self.pkg, self.top_node, self.build_node) self._setup_hooks(self.pkg, self.global_context, mods)
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)
def __init__(self, *args): self.without_gettext = False Distribution.__init__(self, *args)
def __init__(self, *args, **kwargs): self.egl = False self.debug = False Distribution.__init__(self, *args, **kwargs)
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)
def __init__(self, attrs=None): self.k_modules = None self.q_modules = None self.qext_modules = None self.executables = None _Distribution.__init__(self, attrs)
def __init__(self, attrs=None): self.vcpkg_root = None _distribution.__init__(self, attrs)
def __init__(self, *args): self.without_icon_cache = False Distribution.__init__(self, *args)
def __init__(self, attrs=None): self.cmake_options = None Distribution.__init__(self, attrs)
def __init__(self, attrs=None): self.rst_manpages = None self.rst_manpages_update_info = False self.rst_manpages_version = None self.rst_manpages_date = None Distribution.__init__(self, attrs)
def __init__(self, *args, **kwargs): self.configure_files = [] self.configure_values = {} self.man_pages = [] _Distribution.__init__(self, *args, **kwargs)