summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2013-05-28 11:16:50 -0400
committerJason R. Coombs <jaraco@jaraco.com>2013-05-28 11:16:50 -0400
commitbf2a9efc679b5262b0cf5cb949c67529609a38af (patch)
treedd54b7c69fb28682a52bfa134592d511b1771aa2
parent3249f8049e4905a63b9f33f7ea59bece76de0334 (diff)
downloadpython-setuptools-bitbucket-bf2a9efc679b5262b0cf5cb949c67529609a38af.tar.gz
Allow setuptools 0.7 to satisfy use_setuptools.0.6.44
-rw-r--r--CHANGES.txt7
-rw-r--r--distribute_setup.py9
2 files changed, 16 insertions, 0 deletions
diff --git a/CHANGES.txt b/CHANGES.txt
index 7d22ae1b..e18a534b 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -3,6 +3,13 @@ CHANGES
=======
------
+0.6.44
+------
+
+* ``distribute_setup.py`` has been updated to allow Setuptools 0.7 to
+ satisfy use_setuptools.
+
+------
0.6.43
------
diff --git a/distribute_setup.py b/distribute_setup.py
index a2a06664..411c9c8c 100644
--- a/distribute_setup.py
+++ b/distribute_setup.py
@@ -144,6 +144,15 @@ def use_setuptools(version=DEFAULT_VERSION, download_base=DEFAULT_URL,
try:
try:
import pkg_resources
+
+ # Setuptools 0.7b and later is a suitable (and preferable)
+ # substitute for any Distribute version.
+ try:
+ pkg_resources.require("setuptools>=0.7b")
+ return
+ except pkg_resources.DistributionNotFound:
+ pass
+
if not hasattr(pkg_resources, '_distribute'):
if not no_fake:
_fake_setuptools()