From 9cca2a8d2e6c815a7a0ae31a14dc8d879f78b2e9 Mon Sep 17 00:00:00 2001 From: tarek Date: Thu, 23 Jul 2009 14:38:31 +0200 Subject: fixed the forbidden access problem --HG-- branch : distribute extra : rebase_source : 4638763f686895225618238abb4f55786a205692 --- bootstrap.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'bootstrap.py') 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) -- cgit v1.2.1