public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in dev-python/setuptools/files: distribute-0.6.12-fix_deprecation_warnings.patch distribute-0.6.12-disable_versioned_easy_install.patch
@ 2010-05-06 22:18 Arfrever Frehtes Taifersar Arahesis (arfrever)
  0 siblings, 0 replies; 2+ messages in thread
From: Arfrever Frehtes Taifersar Arahesis (arfrever) @ 2010-05-06 22:18 UTC (permalink / raw
  To: gentoo-commits

arfrever    10/05/06 22:18:14

  Added:                distribute-0.6.12-fix_deprecation_warnings.patch
                        distribute-0.6.12-disable_versioned_easy_install.patch
  Log:
  Version bump.
  (Portage version: HEAD/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  dev-python/setuptools/files/distribute-0.6.12-fix_deprecation_warnings.patch

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/setuptools/files/distribute-0.6.12-fix_deprecation_warnings.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/setuptools/files/distribute-0.6.12-fix_deprecation_warnings.patch?rev=1.1&content-type=text/plain

Index: distribute-0.6.12-fix_deprecation_warnings.patch
===================================================================
--- pkg_resources.py
+++ pkg_resources.py
@@ -209,9 +209,10 @@
     needs some hacks for Linux and Mac OS X.
     """
     try:
-        from distutils.util import get_platform
-    except ImportError:
+        # Python 2.7 or >=3.2
         from sysconfig import get_platform
+    except ImportError:
+        from distutils.util import get_platform
 
     plat = get_platform()
     if sys.platform == "darwin" and not plat.startswith('macosx-'):
--- setuptools/command/bdist_egg.py
+++ setuptools/command/bdist_egg.py
@@ -7,10 +7,14 @@
 from setuptools import Command
 from distutils.dir_util import remove_tree, mkpath
 try:
-    from distutils.sysconfig import get_python_version, get_python_lib
+    # Python 2.7 or >=3.2
+    from sysconfig import get_path, get_python_version
+    def _get_purelib():
+        return get_path("purelib")
 except ImportError:
-    from sysconfig import get_python_version
-    from distutils.sysconfig import get_python_lib
+    from distutils.sysconfig import get_python_version, get_python_lib
+    def _get_purelib():
+        return get_python_lib(False)
 
 from distutils import log
 from distutils.errors import DistutilsSetupError
@@ -130,7 +134,7 @@
         # Hack for packages that install data to install's --install-lib
         self.get_finalized_command('install').install_lib = self.bdist_dir
 
-        site_packages = os.path.normcase(os.path.realpath(get_python_lib()))
+        site_packages = os.path.normcase(os.path.realpath(_get_purelib()))
         old, self.distribution.data_files = self.distribution.data_files,[]
 
         for item in old:
--- setuptools/command/build_ext.py
+++ setuptools/command/build_ext.py
@@ -9,9 +9,14 @@
 from distutils.file_util import copy_file
 from setuptools.extension import Library
 from distutils.ccompiler import new_compiler
-from distutils.sysconfig import customize_compiler, get_config_var
-get_config_var("LDSHARED")  # make sure _config_vars is initialized
-from distutils.sysconfig import _config_vars
+try:
+    # Python 2.7 or >=3.2
+    from distutils.ccompiler import customize_compiler
+    from sysconfig import get_config_var, _CONFIG_VARS
+except ImportError:
+    from distutils.sysconfig import customize_compiler, get_config_var
+    get_config_var("LDSHARED")  # make sure _config_vars is initialized
+    from distutils.sysconfig import _config_vars as _CONFIG_VARS
 from distutils import log
 from distutils.errors import *
 
@@ -133,16 +138,16 @@
             compiler=self.compiler, dry_run=self.dry_run, force=self.force
         )
         if sys.platform == "darwin":
-            tmp = _config_vars.copy()
+            tmp = _CONFIG_VARS.copy()
             try:
                 # XXX Help!  I don't have any idea whether these are right...
-                _config_vars['LDSHARED'] = "gcc -Wl,-x -dynamiclib -undefined dynamic_lookup"
-                _config_vars['CCSHARED'] = " -dynamiclib"
-                _config_vars['SO'] = ".dylib"
+                _CONFIG_VARS['LDSHARED'] = "gcc -Wl,-x -dynamiclib -undefined dynamic_lookup"
+                _CONFIG_VARS['CCSHARED'] = " -dynamiclib"
+                _CONFIG_VARS['SO'] = ".dylib"
                 customize_compiler(compiler)
             finally:
-                _config_vars.clear()
-                _config_vars.update(tmp)
+                _CONFIG_VARS.clear()
+                _CONFIG_VARS.update(tmp)
         else:
             customize_compiler(compiler)
 
--- setuptools/command/easy_install.py
+++ setuptools/command/easy_install.py
@@ -15,8 +15,21 @@
 from setuptools import Command, _dont_write_bytecode
 from setuptools.sandbox import run_setup
 from distutils import log, dir_util
+try:
+    # Python 2.7 or >=3.2
+    from sysconfig import get_config_vars, get_path
+    def _get_platlib():
+        return get_path("platlib")
+    def _get_purelib():
+        return get_path("purelib")
+except ImportError:
+    from distutils.sysconfig import get_config_vars, get_python_lib
+    def _get_platlib():
+        return get_python_lib(True)
+    def _get_purelib():
+        return get_python_lib(False)
+
 from distutils.util import convert_path, subst_vars
-from distutils.sysconfig import get_python_lib, get_config_vars
 from distutils.errors import DistutilsArgError, DistutilsOptionError, \
     DistutilsError, DistutilsPlatformError
 from distutils.command.install import INSTALL_SCHEMES, SCHEME_KEYS
@@ -1344,8 +1357,7 @@
                                          'Python',
                                          sys.version[:3],
                                          'site-packages'))
-    for plat_specific in (0,1):
-        site_lib = get_python_lib(plat_specific)
+    for site_lib in (_get_purelib(), _get_platlib()):
         if site_lib not in sitedirs: sitedirs.append(site_lib)
 
     if sys.version >= "2.6":



1.1                  dev-python/setuptools/files/distribute-0.6.12-disable_versioned_easy_install.patch

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/setuptools/files/distribute-0.6.12-disable_versioned_easy_install.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/setuptools/files/distribute-0.6.12-disable_versioned_easy_install.patch?rev=1.1&content-type=text/plain

Index: distribute-0.6.12-disable_versioned_easy_install.patch
===================================================================
--- setup.py
+++ setup.py
@@ -150,8 +150,6 @@
 
         "console_scripts": [
              "easy_install = setuptools.command.easy_install:main",
-             "easy_install-%s = setuptools.command.easy_install:main"
-                % sys.version[:3]
         ],
 
         "setuptools.file_finders":






^ permalink raw reply	[flat|nested] 2+ messages in thread

* [gentoo-commits] gentoo-x86 commit in dev-python/setuptools/files: distribute-0.6.12-fix_deprecation_warnings.patch distribute-0.6.12-disable_versioned_easy_install.patch
@ 2012-10-05 11:32 Dirkjan Ochtman (djc)
  0 siblings, 0 replies; 2+ messages in thread
From: Dirkjan Ochtman (djc) @ 2012-10-05 11:32 UTC (permalink / raw
  To: gentoo-commits

djc         12/10/05 11:32:13

  Removed:              distribute-0.6.12-fix_deprecation_warnings.patch
                        distribute-0.6.12-disable_versioned_easy_install.patch
  Log:
  Remove old versions of setuptools.
  
  (Portage version: 2.1.11.23/cvs/Linux x86_64)


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-10-05 11:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-05 11:32 [gentoo-commits] gentoo-x86 commit in dev-python/setuptools/files: distribute-0.6.12-fix_deprecation_warnings.patch distribute-0.6.12-disable_versioned_easy_install.patch Dirkjan Ochtman (djc)
  -- strict thread matches above, loose matches on Subject: below --
2010-05-06 22:18 Arfrever Frehtes Taifersar Arahesis (arfrever)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox