def __init__(self, attrs): baseattrs = {} py2exeoptions = {} py2exeoptions["packages"] = ["translate", "encodings"] py2exeoptions["compressed"] = True py2exeoptions["excludes"] = [ "PyLucene", "Tkconstants", "Tkinter", "tcl", "enchant", # Need to do more to support spell checking on Windows # strange things unnecessarily included with some versions of pyenchant: "win32ui", "_win32sysloader", "win32pipe", "py2exe", "win32com", "pywin", "isapi", "_tkinter", "win32api", ] version = attrs.get("version", translateversion) py2exeoptions["dist_dir"] = "translate-toolkit-%s" % version py2exeoptions["includes"] = ["lxml", "lxml._elementpath", "psyco"] options = {"py2exe": py2exeoptions} baseattrs['options'] = options if py2exe: baseattrs['console'] = translatescripts baseattrs['zipfile'] = "translate.zip" baseattrs['cmdclass'] = { "py2exe": build_exe_map, "innosetup": build_installer } options["innosetup"] = py2exeoptions.copy() options["innosetup"]["install_script"] = [] baseattrs.update(attrs) Distribution.__init__(self, baseattrs)
def __init__(self, *args, **kwargs): Distribution.__init__(self, *args, **kwargs) self.cmdclass.setdefault("build_shortcuts", build_shortcuts) self.cmdclass.setdefault("update_icon_cache", update_icon_cache) self.cmdclass.setdefault("install_shortcuts", install_shortcuts) self.cmdclass.setdefault("build", build) self.cmdclass.setdefault("install", install)
def __init__(self, attrs=None): have_package_data = hasattr(self, "package_data") if not have_package_data: self.package_data = {} _attrs_dict = attrs or {} if 'features' in _attrs_dict or 'require_features' in _attrs_dict: Feature.warn_deprecated() self.require_features = [] self.features = {} self.dist_files = [] self.src_root = attrs and attrs.pop("src_root", None) self.patch_missing_pkg_info(attrs) # Make sure we have any eggs needed to interpret 'attrs' if attrs is not None: self.dependency_links = attrs.pop('dependency_links', []) assert_string_list(self,'dependency_links',self.dependency_links) if attrs and 'setup_requires' in attrs: self.fetch_build_eggs(attrs.pop('setup_requires')) for ep in pkg_resources.iter_entry_points('distutils.setup_keywords'): if not hasattr(self,ep.name): setattr(self,ep.name,None) _Distribution.__init__(self,attrs) if isinstance(self.metadata.version, numeric_types): # Some people apparently take "version number" too literally :) self.metadata.version = str(self.metadata.version)
def __init__(self, *args): Distribution.__init__(self, *args) self.com_server = [] self.services = [] self.windows = [{'script': 'gogames-screensaver', 'icon_resources': [(1,'icons/icon.ico')]}] self.console = [] self.zipfile = None
def __init__(self, attrs = None): # A list of (sconscripts, pre_hook, post_hook, src, parent_names) self.scons_data = [] # A list of installable libraries self.installed_libraries = [] # A dict of pkg_config files to generate/install self.installed_pkg_config = {} Distribution.__init__(self, attrs)
def __init__ (self, attrs=None): #super(Gist_dist,self).__init__(attrs) Distribution.__init__(self, attrs) self.cmdclass = { 'build': gist_build, # override 'patch': patch_cmd, 'mkconfig': mkconfig_cmd, }
def __init__(self, attrs=None): self.twisted_plugins = None Distribution.__init__(self, attrs) self.cmdclass = {'install': twisted_install, 'install_twisted_plugins': install_twisted_plugins, 'build': twisted_build, 'build_twisted_plugins': build_twisted_plugins, 'sdist': twisted_sdist, }
def __init__(self, attrs): self.com_server = [] self.ctypes_com_server = [] self.service = ["cfnbootstrap.winhup"] self.isapi = [] self.windows = [] self.zipfile = 'library.zip' self.console = ['bin/cfn-init', 'bin/cfn-signal', 'bin/cfn-get-metadata', 'bin/cfn-hup', 'bin/cfn-elect-cmd-leader', 'bin/cfn-send-cmd-result'] Distribution.__init__(self, attrs)
def __init__(self, attrs=None): self.twisted_plugins = None Distribution.__init__(self, attrs) self.cmdclass = { "install": twisted_install, "install_twisted_plugins": install_twisted_plugins, "build": twisted_build, "build_twisted_plugins": build_twisted_plugins, "sdist": twisted_sdist, }
def __init__(self, attrs): self.ctypes_com_server = [] self.com_server = [] self.services = [] self.windows = [dict(script="luminotes.py", icon_resources=[(0, "static\\images\\luminotes.ico")])] self.console = [] self.service = [] self.isapi = [] self.zipfile = "lib\luminotes.zip" 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): # this does most of the work... build_num = committed_rev() if build_num: # if there is SVN revision data, assign the new version number attrs['version'] = '%i' % build_num try: # then try to create a user specified version file filename, format = attrs['version_file'] file(filename,'w').write(format % build_num) # in case a 'version_file' attribute was not set, do nothing except KeyError: pass # the parent class does not know about 'version_file', so delete it del attrs['version_file'] Distribution.__init__(self, attrs)
def __init__(self, attrs=None): have_package_data = hasattr(self, "package_data") if not have_package_data: self.package_data = {} _attrs_dict = attrs or {} if 'features' in _attrs_dict or 'require_features' in _attrs_dict: Feature.warn_deprecated() self.require_features = [] self.features = {} self.dist_files = [] self.src_root = attrs and attrs.pop("src_root", None) self.patch_missing_pkg_info(attrs) # Make sure we have any eggs needed to interpret 'attrs' if attrs is not None: self.dependency_links = attrs.pop('dependency_links', []) assert_string_list(self, 'dependency_links', self.dependency_links) if attrs and 'setup_requires' in attrs: self.fetch_build_eggs(attrs['setup_requires']) for ep in pkg_resources.iter_entry_points('distutils.setup_keywords'): vars(self).setdefault(ep.name, None) _Distribution.__init__(self, attrs) if isinstance(self.metadata.version, numbers.Number): # Some people apparently take "version number" too literally :) self.metadata.version = str(self.metadata.version) if self.metadata.version is not None: try: ver = packaging.version.Version(self.metadata.version) normalized_version = str(ver) if self.metadata.version != normalized_version: warnings.warn( "Normalizing '%s' to '%s'" % ( self.metadata.version, normalized_version, ) ) self.metadata.version = normalized_version except (packaging.version.InvalidVersion, TypeError): warnings.warn( "The version specified (%r) is an invalid version, this " "may not work as expected with newer versions of " "setuptools, pip, and PyPI. Please see PEP 440 for more " "details." % self.metadata.version ) if getattr(self, 'python_requires', None): self.metadata.python_requires = self.python_requires
def __init__(self, attrs): package_dir = attrs['package_dir'] packages = attrs['packages'] for package in packages: pdir = get_package_dir(package_dir,package) revision = svnversion(os.path.join(sys.path[0],pdir), committed = True) # would not follow revision syntax rules: # attrs['version'] = revision try: # then try to create a user specified version file filename, format = attrs['revision_file'] file(os.path.join(sys.path[0],pdir,filename),'w').write(format % revision) except KeyError: # in case a 'revision_file' attribute was not set, do nothing pass # the parent class does not know about 'version_file', so delete it del attrs['revision_file'] Distribution.__init__(self, attrs)
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): baseattrs = {} py2exeoptions = {} py2exeoptions["packages"] = ["translate", "encodings"] py2exeoptions["compressed"] = True py2exeoptions["excludes"] = ["PyLucene", "Tkconstants", "Tkinter", "tcl"] version = attrs.get("version", translateversion) py2exeoptions["dist_dir"] = "translate-toolkit-%s" % version py2exeoptions["includes"] = ["lxml", "lxml._elementpath", "psyco"] options = {"py2exe": py2exeoptions} baseattrs['options'] = options if py2exe: baseattrs['console'] = translatescripts baseattrs['zipfile'] = "translate.zip" baseattrs['cmdclass'] = {"py2exe": build_exe_map, "innosetup": build_installer} options["innosetup"] = py2exeoptions.copy() options["innosetup"]["install_script"] = [] baseattrs.update(attrs) Distribution.__init__(self, baseattrs)
def __init__(self, attrs=None): have_package_data = hasattr(self, "package_data") if not have_package_data: self.package_data = {} self.require_features = [] self.features = {} self.dist_files = [] self.src_root = attrs and attrs.pop("src_root", None) self.patch_missing_pkg_info(attrs) # Make sure we have any eggs needed to interpret 'attrs' if attrs is not None: self.dependency_links = attrs.pop("dependency_links", []) assert_string_list(self, "dependency_links", self.dependency_links) if attrs and "setup_requires" in attrs: self.fetch_build_eggs(attrs.pop("setup_requires")) for ep in pkg_resources.iter_entry_points("distutils.setup_keywords"): if not hasattr(self, ep.name): setattr(self, ep.name, None) _Distribution.__init__(self, attrs) if isinstance(self.metadata.version, (int, float)): # Some people apparently take "version number" too literally :) self.metadata.version = str(self.metadata.version)
def __init__(self, attrs): # Add our placeholders for arguments from setup() self.l10n = [] self.doc_files = [] self.bgen_files = [] self.sysconf_files = [] self.localstate_files = [] self.devel_files = [] # The module where configuration variables are written. # Used by the 'install_config' command. self.config_module = None # File in source tree that represents the software copyright. # Currently, only used by the 'bdist_inno' command. self.license_file = None # 'package' is the name of the subpackage. self.package = None # File in source tree that contains the setup attributes for the # subpackage. self.package_file = None self.main_distribution = None # Used for gathering and validating the files included in a source # distribution. Used by the 'sdist' command. self.manifest_templates = [] self.validate_templates = [] # Add support for build_py's 'package_data'. New in Python 2.4+ self.package_data = {} # 'namespace_packages' is a list of package names whose contents are # split across multiple distributions. self.namespace_packages = None Distribution.__init__(self, attrs) return
def __init__(self, attrs=None): self.skip_doc = 0 self.only_doc = 0 _Distribution.__init__(self, attrs)
def __init__(self, attrs=None): # A list of (sconscripts, pre_hook, post_hook, src, parent_names) self.scons_data = [] Distribution.__init__(self, attrs)
self.src_root = attrs and attrs.pop("src_root", None) self.patch_missing_pkg_info(attrs) # Make sure we have any eggs needed to interpret 'attrs' if attrs is not None: self.dependency_links = attrs.pop('dependency_links', []) assert_string_list(self,'dependency_links',self.dependency_links) if attrs and 'setup_requires' in attrs: <<<<<<< HEAD self.fetch_build_eggs(attrs['setup_requires']) ======= self.fetch_build_eggs(attrs.pop('setup_requires')) >>>>>>> e4baf504ede925f4f1e07d823c9b20b3d0dbe14c for ep in pkg_resources.iter_entry_points('distutils.setup_keywords'): if not hasattr(self,ep.name): setattr(self,ep.name,None) _Distribution.__init__(self,attrs) <<<<<<< HEAD if isinstance(self.metadata.version, numbers.Number): # Some people apparently take "version number" too literally :) self.metadata.version = str(self.metadata.version) if self.metadata.version is not None: try: ver = packaging.version.Version(self.metadata.version) normalized_version = str(ver) if self.metadata.version != normalized_version: warnings.warn( "Normalizing '%s' to '%s'" % ( self.metadata.version, normalized_version, )
def __init__(self, attrs=None): _Distribution.__init__(self, attrs)
def __init__(self, *attrs): Distribution.__init__(self, *attrs) self.cmdclass['install'] = uWSGIInstall self.cmdclass['build_ext'] = uWSGIBuilder
def __init__(self, attrs): self.po = None self.appdata = None self.links = None Distribution.__init__(self, attrs)
def __init__(self, *args, **kwargs): self.skip_libsumo = False Distribution.__init__(self, *args, **kwargs)
def __init__(self, attrs=None): self.k_modules = None self.q_modules = None self.qext_modules = None _Distribution.__init__(self, attrs)
def __init__(self, attrs=None): self.executables = None cls_Distribution.__init__(self, attrs)
def __init__(self, attrs = None): # A list of (sconscripts, pre_hook, post_hook, src, parent_names) self.scons_data = [] Distribution.__init__(self, attrs)
def __init__ (self, attrs=None): self.k_modules = None self.q_modules = None self.qext_modules = None _Distribution.__init__(self, attrs)
def __init__(self, *args): Distribution.__init__(self, *args) self.scripts = ["usr/bin/gogames-screensaver", "usr/bin/gogames-sgf-thumbnailer"]
def __init__(self, *args, **kwargs): Distribution.__init__(self, *args, **kwargs) self.cmdclass['install'] = NoodleInstall self.cmdclass['install_nu'] = NoodleInstallNu self.cmdclass['build_nu'] = NoodleBuild
def __init__ (self, attrs=None): self.executables = None cls_Distribution.__init__(self, attrs)
def __init__(self, attrs=None): self.protos = None Distribution.__init__(self, attrs)