diff options
author | phillip.eby <phillip.eby@6015fed2-1504-0410-9fe1-9d1591cc4771> | 2011-01-20 18:46:49 +0000 |
---|---|---|
committer | phillip.eby <phillip.eby@6015fed2-1504-0410-9fe1-9d1591cc4771> | 2011-01-20 18:46:49 +0000 |
commit | f6215960d2636ef84b06b27614c2fcec73cbd13c (patch) | |
tree | b33d5bc3d8e44388f57d77989f9de694edc14aff /ez_setup.py | |
parent | 3f2ef068f801d407cf3fc46f22a1b8c6548a3695 (diff) | |
download | python-setuptools-f6215960d2636ef84b06b27614c2fcec73cbd13c.tar.gz |
Fix path problems when pkg_resources is present, but not setuptools.
git-svn-id: http://svn.python.org/projects/sandbox/trunk/setuptools@88123 6015fed2-1504-0410-9fe1-9d1591cc4771
Diffstat (limited to 'ez_setup.py')
-rwxr-xr-x | ez_setup.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ez_setup.py b/ez_setup.py index fd9d80f..b75265d 100755 --- a/ez_setup.py +++ b/ez_setup.py @@ -74,11 +74,11 @@ def use_setuptools( "\n\n(Currently using %r)" ) % (version, e.args[0]) sys.exit(2) - else: - del pkg_resources, sys.modules['pkg_resources'] # reload ok - return do_download() except pkg_resources.DistributionNotFound: - return do_download() + pass + + del pkg_resources, sys.modules['pkg_resources'] # reload ok + return do_download() def download_setuptools( version=DEFAULT_VERSION, download_base=DEFAULT_URL, to_dir=os.curdir, |