diff options
author | tarek <none@none> | 2009-07-23 14:38:31 +0200 |
---|---|---|
committer | tarek <none@none> | 2009-07-23 14:38:31 +0200 |
commit | 9cca2a8d2e6c815a7a0ae31a14dc8d879f78b2e9 (patch) | |
tree | ee103c4b16220cb99d7d6d5feb6a2c5a93f21dba /bootstrap.py | |
parent | 1ddd4356e545a49a1345bb02d62b19478805c161 (diff) | |
download | external_python_setuptools-9cca2a8d2e6c815a7a0ae31a14dc8d879f78b2e9.tar.gz external_python_setuptools-9cca2a8d2e6c815a7a0ae31a14dc8d879f78b2e9.tar.bz2 external_python_setuptools-9cca2a8d2e6c815a7a0ae31a14dc8d879f78b2e9.zip |
fixed the forbidden access problem
--HG--
branch : distribute
extra : rebase_source : 4638763f686895225618238abb4f55786a205692
Diffstat (limited to 'bootstrap.py')
-rw-r--r-- | bootstrap.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/bootstrap.py b/bootstrap.py index abb73c97..a861c584 100644 --- a/bootstrap.py +++ b/bootstrap.py @@ -19,6 +19,7 @@ import shutil import time import fnmatch from distutils import log +from distutils.errors import DistutilsError is_jython = sys.platform.startswith('java') if is_jython: @@ -31,7 +32,7 @@ except ImportError: DEFAULT_VERSION = "0.6" #DEFAULT_URL = "http://pypi.python.org/packages/%s/d/distribute/" % sys.version[:3] -DEFAULT_URL = "http://bitbucket.org/tarek/distribute/downloads/" +DEFAULT_URL = "http://nightly.ziade.org/" md5_data = { 'distribute-0.6-py2.3.egg': '83789f9a3b2f32c7088065f6fd3de930', @@ -307,7 +308,10 @@ def main(argv, version=DEFAULT_VERSION): ) sys.exit(2) from setuptools.command import easy_install - return easy_install.main(list(argv)+['-v']+[egg]) + try: + return easy_install.main(list(argv)+['-v']+[egg]) + except DistutilsError: + return sys.exit(2) finally: if egg and os.path.exists(egg): os.unlink(egg) |