コード例 #1
0
ファイル: setup.py プロジェクト: ChrisOelmueller/translate
 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)
コード例 #2
0
ファイル: setup.py プロジェクト: nkoep/blaplay
 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)
コード例 #3
0
ファイル: dist.py プロジェクト: Orav/kbengine
 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)
コード例 #4
0
 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
コード例 #5
0
 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)
コード例 #6
0
ファイル: setup.py プロジェクト: mdcb/python-gist
 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,
   }
コード例 #7
0
 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,
     }
コード例 #8
0
 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)
コード例 #9
0
 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,
     }
コード例 #10
0
ファイル: setup.py プロジェクト: vijo/luminotes
 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)
コード例 #11
0
ファイル: mpidistutils.py プロジェクト: datawrangling/mpi4py
 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)
コード例 #12
0
ファイル: recipe-573449.py プロジェクト: bhramoss/code
 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)
コード例 #13
0
ファイル: dist.py プロジェクト: BelNox/inl-blog
    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
コード例 #14
0
ファイル: setup.py プロジェクト: jnorthrup/jmodelica
 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)
コード例 #15
0
ファイル: setup.py プロジェクト: anishathalye/pyyaml
 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
コード例 #16
0
ファイル: setup.py プロジェクト: AndryulE/kitsune
 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)
コード例 #17
0
ファイル: dist.py プロジェクト: sechilds/dotfiles
 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)
コード例 #18
0
ファイル: setup.py プロジェクト: ChrisOelmueller/translate
 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)
コード例 #19
0
ファイル: Dist.py プロジェクト: H1d3r/binary_blobs
    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
コード例 #20
0
ファイル: setup.py プロジェクト: mlyko/tadek-common
 def __init__(self, attrs=None):
     self.skip_doc = 0
     self.only_doc = 0
     _Distribution.__init__(self, attrs)
コード例 #21
0
 def __init__(self, attrs=None):
     # A list of (sconscripts, pre_hook, post_hook, src, parent_names)
     self.scons_data = []
     Distribution.__init__(self, attrs)
コード例 #22
0
        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,
                        )
コード例 #23
0
ファイル: setup.py プロジェクト: sputt/req-compile
 def __init__(self, attrs=None):
     _Distribution.__init__(self, attrs)
コード例 #24
0
ファイル: setup.py プロジェクト: mlzboy/resys
	def __init__(self, *attrs):
		Distribution.__init__(self, *attrs)
		self.cmdclass['install'] = uWSGIInstall
		self.cmdclass['build_ext'] = uWSGIBuilder
コード例 #25
0
ファイル: setup.py プロジェクト: BackupTheBerlios/tel-svn
 def __init__(self, attrs):
     self.po = None
     self.appdata = None
     self.links = None
     Distribution.__init__(self, attrs)
コード例 #26
0
 def __init__(self, *args, **kwargs):
     self.skip_libsumo = False
     Distribution.__init__(self, *args, **kwargs)
コード例 #27
0
 def __init__(self, attrs=None):
     self.k_modules = None
     self.q_modules = None
     self.qext_modules = None
     _Distribution.__init__(self, attrs)
コード例 #28
0
ファイル: mpidistutils.py プロジェクト: minrk/distarray
 def __init__(self, attrs=None):
     self.executables = None
     cls_Distribution.__init__(self, attrs)
コード例 #29
0
ファイル: setup.py プロジェクト: tadek-project/tadek-common
 def __init__(self, attrs=None):
     self.skip_doc = 0
     self.only_doc = 0
     _Distribution.__init__(self, attrs)
コード例 #30
0
 def __init__(self, attrs = None):
     # A list of (sconscripts, pre_hook, post_hook, src, parent_names)
     self.scons_data = []
     Distribution.__init__(self, attrs)
コード例 #31
0
ファイル: setup.py プロジェクト: kevinarpe/kx
 def __init__ (self, attrs=None):
     self.k_modules = None
     self.q_modules = None
     self.qext_modules = None
     _Distribution.__init__(self, attrs)
コード例 #32
0
 def __init__(self, *args):
     Distribution.__init__(self, *args)
     self.scripts = ["usr/bin/gogames-screensaver", 
                     "usr/bin/gogames-sgf-thumbnailer"]
コード例 #33
0
 def __init__(self, attrs):
     self.po = None
     self.appdata = None
     self.links = None
     Distribution.__init__(self, attrs)
コード例 #34
0
ファイル: setup.py プロジェクト: thepaul/noodle
 def __init__(self, *args, **kwargs):
     Distribution.__init__(self, *args, **kwargs)
     self.cmdclass['install'] = NoodleInstall
     self.cmdclass['install_nu'] = NoodleInstallNu
     self.cmdclass['build_nu'] = NoodleBuild
コード例 #35
0
ファイル: mpidistutils.py プロジェクト: minrk/distarray
 def __init__ (self, attrs=None):
     self.executables = None
     cls_Distribution.__init__(self, attrs)
コード例 #36
0
ファイル: setup.py プロジェクト: jgosmann/qrsim
 def __init__(self, attrs=None):
     self.protos = None
     Distribution.__init__(self, attrs)