summaryrefslogtreecommitdiff
path: root/distribute_setup.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2013-05-29 07:35:38 -0400
committerJason R. Coombs <jaraco@jaraco.com>2013-05-29 07:35:38 -0400
commit09b0b938b617e6b4f26a2cd1bf6c9e62ebbc6b57 (patch)
tree0d134831ab3a3255d19c6abd3614d60a131d32be /distribute_setup.py
parentb39c770280a208f82159352d2bdf086775b46d92 (diff)
downloadpython-setuptools-git-0.6.45.tar.gz
Catch VersionConflict in distribute_setup when checking for setuptools 0.7 (to allow upgrade from setuptools to distribute). Fixes #3790.6.45
--HG-- branch : distribute
Diffstat (limited to 'distribute_setup.py')
-rw-r--r--distribute_setup.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/distribute_setup.py b/distribute_setup.py
index a9c00982..c67b7524 100644
--- a/distribute_setup.py
+++ b/distribute_setup.py
@@ -150,7 +150,8 @@ def use_setuptools(version=DEFAULT_VERSION, download_base=DEFAULT_URL,
try:
pkg_resources.require("setuptools>=0.7b")
return
- except pkg_resources.DistributionNotFound:
+ except (pkg_resources.DistributionNotFound,
+ pkg_resources.VersionConflict):
pass
if not hasattr(pkg_resources, '_distribute'):