python - How to pass proxy to pythonbrew for downloading setuptools? -
i installed pythonbrew on ubuntu precise system. had issues using proxy during installation (see an earlier post). i'm able install different versions of python , switch between them, setuptools not installed during python installation:
error: failed install setuptools. see /usr/local/pythonbrew/log/build.log see why. skip installation of setuptools.
the build.log contains:
downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.49.tar.gz traceback (most recent call last): file "distribute_setup.py", line 556, in <module> sys.exit(main()) file "distribute_setup.py", line 552, in main tarball = download_setuptools(download_base=options.download_base) file "distribute_setup.py", line 211, in download_setuptools src = urlopen(url) file "/usr/local/pythonbrew/pythons/python-2.6/lib/python2.6/urllib2.py", line 124, in urlopen return _opener.open(url, data, timeout) file "/usr/local/pythonbrew/pythons/python-2.6/lib/python2.6/urllib2.py", line 389, in open response = meth(req, response) file "/usr/local/pythonbrew/pythons/python-2.6/lib/python2.6/urllib2.py", line 502, in http_response 'http', request, response, code, msg, hdrs) file "/usr/local/pythonbrew/pythons/python-2.6/lib/python2.6/urllib2.py", line 421, in error result = self._call_chain(*args) file "/usr/local/pythonbrew/pythons/python-2.6/lib/python2.6/urllib2.py", line 361, in _call_chain result = func(*args) file "/usr/local/pythonbrew/pythons/python-2.6/lib/python2.6/urllib2.py", line 597, in http_error_302 return self.parent.open(new) file "/usr/local/pythonbrew/pythons/python-2.6/lib/python2.6/urllib2.py", line 383, in open response = self._open(req, data) file "/usr/local/pythonbrew/pythons/python-2.6/lib/python2.6/urllib2.py", line 401, in _open '_open', req) file "/usr/local/pythonbrew/pythons/python-2.6/lib/python2.6/urllib2.py", line 361, in _call_chain result = func(*args) file "/usr/local/pythonbrew/pythons/python-2.6/lib/python2.6/urllib2.py", line 1138, in https_open return self.do_open(httplib.httpsconnection, req) file "/usr/local/pythonbrew/pythons/python-2.6/lib/python2.6/urllib2.py", line 1105, in do_open raise urlerror(err) urllib2.urlerror: <urlopen error [errno 110] connection timed out>
looks me issue proxy again , i'm not sure script modify setuptools installation uses proxy. modified distribute_setup.py , added proxy information there (based on this post), looks file overwritten each time pythonbrew install called. new python , can't find file generated from. pointers how can pass proxy setuptools part of installation appreciated.
setting http_proxy , https_proxy in env solved particular problem (after error changed 110 113; follow see other question).
Comments
Post a Comment