Running any setuptools-based program (such as zc.buildout's bootstrap.py) with http_proxy="proxyout.mycompany.com:8080" produces "Download error onhostname 'proxyout.mycompany.com' doesn't match either of "[long list of hostnames goes here] Backing off to python-2.7.6-r1001 solves the problem. Reproducible: Always Steps to Reproduce: 1. emerge -1 =python-2.7.7-r1000 setuptools 2. export http_proxy="mycompany.lanl.gov" 3. wget http://downloads.buildout.org/2/bootstrap.py 4. python bootstrap.py Actual Results: python bootstrap.py Downloading https://pypi.python.org/packages/source/s/setuptools/setuptools-3.5.1.zip Extracting in /tmp/tmpbVJ9bn Now working in /tmp/tmpbVJ9bn/setuptools-3.5.1 Building a Setuptools egg in /tmp/tmp1A2wMO hgtools.SubprocessManager('.') could not find files: /tmp/tmp1A2wMO/setuptools-3.5.1-py2.7.egg Download error on https://pypi.python.org/simple/zc.buildout/: hostname 'proxyout.lanl.gov' doesn't match either of '*.c.ssl.fastly.net', 'c.ssl.fastly.net', '*.target.com', '*.vhx.tv', '*.snappytv.com', '*.atlassian.net', 'places.hoteltonight.com', 'secure.lessthan3.com', '*.atlassian.com', 'a.sellpoint.net', 'cdn.upthere.com', '*.tissuu.com', '*.issuu.com', '*.kekofan.com', '*.python.org', '*.theverge.com', '*.sbnation.com', '*.polygon.com', '*.twobrightlights.com', '*.2brightlights.info', '*.vox.com', 'staging-cdn.upthere.com', '*.zeebox.com', '*.beamly.com', '*.aticpan.org', 'stream.svc.7digital.net', 'stream-test.svc.7digital.net', '*.articulate.com', 's.t.st', 'vid.thestreet.com', '*.planet-labs.com', '*.url2png.com', 'turn.com', 'www.turn.com', 'rivergathering.org', 'social.icfglobal2014-europe.org', '*.innogamescdn.com', '*.pathable.com', '*.staging.pathable.com', '*.kickstarter.com', 'sparkingchange.org', 'www.swedavia.se', 'www.swedavia.com', 'js-agent.newrelic.com', '*.fastly-streams.com', 'cdn.brandisty.com', 'fastly.hightailcdn.com', '*.fl.yelpcdn.com', '*.feedmagnet.com', 'api.contentbody.com', '*.acquia.com', '*.swarmapp.com', '*.lonny.com', '*.stylebistro.com', '*.zimbio.com', '*.pypa.io', 'pypa.io', 'static.qbranch.se', '*.krxd.net', '*.room.co', '*.metrological.com', 'room.co', 'cdn.evbuc.com', 'cdn.adagility.com', '*.bandpage.com', '*.ibmserviceengage.com', '*.quirky.com', '*.veez.co', '*.x.io', '*.otoycdn.net', '*.scribd.com', 'www.dwin1.com', 'api.imgur-ysports.com', 'i.imgur-ysports.com', '*.fxcm.co.jp' -- Some packages may not be found! Couldn't find index page for 'zc.buildout' (maybe misspelled?) Download error on https://pypi.python.org/simple/: hostname 'proxyout.lanl.gov' doesn't match either of '*.c.ssl.fastly.net', 'c.ssl.fastly.net', '*.target.com', '*.vhx.tv', '*.snappytv.com', '*.atlassian.net', 'places.hoteltonight.com', 'secure.lessthan3.com', '*.atlassian.com', 'a.sellpoint.net', 'cdn.upthere.com', '*.tissuu.com', '*.issuu.com', '*.kekofan.com', '*.python.org', '*.theverge.com', '*.sbnation.com', '*.polygon.com', '*.twobrightlights.com', '*.2brightlights.info', '*.vox.com', 'staging-cdn.upthere.com', '*.zeebox.com', '*.beamly.com', '*.aticpan.org', 'stream.svc.7digital.net', 'stream-test.svc.7digital.net', '*.articulate.com', 's.t.st', 'vid.thestreet.com', '*.planet-labs.com', '*.url2png.com', 'turn.com', 'www.turn.com', 'rivergathering.org', 'social.icfglobal2014-europe.org', '*.innogamescdn.com', '*.pathable.com', '*.staging.pathable.com', '*.kickstarter.com', 'sparkingchange.org', 'www.swedavia.se', 'www.swedavia.com', 'js-agent.newrelic.com', '*.fastly-streams.com', 'cdn.brandisty.com', 'fastly.hightailcdn.com', '*.fl.yelpcdn.com', '*.feedmagnet.com', 'api.contentbody.com', '*.acquia.com', '*.swarmapp.com', '*.lonny.com', '*.stylebistro.com', '*.zimbio.com', '*.pypa.io', 'pypa.io', 'static.qbranch.se', '*.krxd.net', '*.room.co', '*.metrological.com', 'room.co', 'cdn.evbuc.com', 'cdn.adagility.com', '*.bandpage.com', '*.ibmserviceengage.com', '*.quirky.com', '*.veez.co', '*.x.io', '*.otoycdn.net', '*.scribd.com', 'www.dwin1.com', 'api.imgur-ysports.com', 'i.imgur-ysports.com', '*.fxcm.co.jp' -- Some packages may not be found! Download error on https://pypi.python.org/simple/zc.buildout/: hostname 'proxyout.lanl.gov' doesn't match either of '*.c.ssl.fastly.net', 'c.ssl.fastly.net', '*.target.com', '*.vhx.tv', '*.snappytv.com', '*.atlassian.net', 'places.hoteltonight.com', 'secure.lessthan3.com', '*.atlassian.com', 'a.sellpoint.net', 'cdn.upthere.com', '*.tissuu.com', '*.issuu.com', '*.kekofan.com', '*.python.org', '*.theverge.com', '*.sbnation.com', '*.polygon.com', '*.twobrightlights.com', '*.2brightlights.info', '*.vox.com', 'staging-cdn.upthere.com', '*.zeebox.com', '*.beamly.com', '*.aticpan.org', 'stream.svc.7digital.net', 'stream-test.svc.7digital.net', '*.articulate.com', 's.t.st', 'vid.thestreet.com', '*.planet-labs.com', '*.url2png.com', 'turn.com', 'www.turn.com', 'rivergathering.org', 'social.icfglobal2014-europe.org', '*.innogamescdn.com', '*.pathable.com', '*.staging.pathable.com', '*.kickstarter.com', 'sparkingchange.org', 'www.swedavia.se', 'www.swedavia.com', 'js-agent.newrelic.com', '*.fastly-streams.com', 'cdn.brandisty.com', 'fastly.hightailcdn.com', '*.fl.yelpcdn.com', '*.feedmagnet.com', 'api.contentbody.com', '*.acquia.com', '*.swarmapp.com', '*.lonny.com', '*.stylebistro.com', '*.zimbio.com', '*.pypa.io', 'pypa.io', 'static.qbranch.se', '*.krxd.net', '*.room.co', '*.metrological.com', 'room.co', 'cdn.evbuc.com', 'cdn.adagility.com', '*.bandpage.com', '*.ibmserviceengage.com', '*.quirky.com', '*.veez.co', '*.x.io', '*.otoycdn.net', '*.scribd.com', 'www.dwin1.com', 'api.imgur-ysports.com', 'i.imgur-ysports.com', '*.fxcm.co.jp' -- Some packages may not be found! Couldn't find index page for 'zc.buildout' (maybe misspelled?) Download error on https://pypi.python.org/simple/: hostname 'proxyout.lanl.gov' doesn't match either of '*.c.ssl.fastly.net', 'c.ssl.fastly.net', '*.target.com', '*.vhx.tv', '*.snappytv.com', '*.atlassian.net', 'places.hoteltonight.com', 'secure.lessthan3.com', '*.atlassian.com', 'a.sellpoint.net', 'cdn.upthere.com', '*.tissuu.com', '*.issuu.com', '*.kekofan.com', '*.python.org', '*.theverge.com', '*.sbnation.com', '*.polygon.com', '*.twobrightlights.com', '*.2brightlights.info', '*.vox.com', 'staging-cdn.upthere.com', '*.zeebox.com', '*.beamly.com', '*.aticpan.org', 'stream.svc.7digital.net', 'stream-test.svc.7digital.net', '*.articulate.com', 's.t.st', 'vid.thestreet.com', '*.planet-labs.com', '*.url2png.com', 'turn.com', 'www.turn.com', 'rivergathering.org', 'social.icfglobal2014-europe.org', '*.innogamescdn.com', '*.pathable.com', '*.staging.pathable.com', '*.kickstarter.com', 'sparkingchange.org', 'www.swedavia.se', 'www.swedavia.com', 'js-agent.newrelic.com', '*.fastly-streams.com', 'cdn.brandisty.com', 'fastly.hightailcdn.com', '*.fl.yelpcdn.com', '*.feedmagnet.com', 'api.contentbody.com', '*.acquia.com', '*.swarmapp.com', '*.lonny.com', '*.stylebistro.com', '*.zimbio.com', '*.pypa.io', 'pypa.io', 'static.qbranch.se', '*.krxd.net', '*.room.co', '*.metrological.com', 'room.co', 'cdn.evbuc.com', 'cdn.adagility.com', '*.bandpage.com', '*.ibmserviceengage.com', '*.quirky.com', '*.veez.co', '*.x.io', '*.otoycdn.net', '*.scribd.com', 'www.dwin1.com', 'api.imgur-ysports.com', 'i.imgur-ysports.com', '*.fxcm.co.jp' -- Some packages may not be found! No local packages or download links found for zc.buildout error: Could not find suitable distribution for Requirement.parse('zc.buildout') Traceback (most recent call last): File "bootstrap.py", line 161, in <module> "Failed to execute command:\n%s" % repr(cmd)[1:-1]) Exception: Failed to execute command: '/usr/bin/python2.7', '-c', 'from setuptools.command.easy_install import main; main()', '-mZqNxd', '/tmp/tmp1A2wMO', 'zc.buildout' Expected Results: python bootstrap.py Downloading https://pypi.python.org/packages/source/s/setuptools/setuptools-3.5.1.zip Extracting in /tmp/tmpl3B4tV Now working in /tmp/tmpl3B4tV/setuptools-3.5.1 Building a Setuptools egg in /tmp/tmptaE5gj hgtools.SubprocessManager('.') could not find files: /tmp/tmptaE5gj/setuptools-3.5.1-py2.7.egg Creating directory '/home/localhost/joelb/src/sequedex/eggs'. Creating directory '/home/localhost/joelb/src/sequedex/develop-eggs'. Generated script '/home/localhost/joelb/src/sequedex/bin/buildout'. Not sure whether this is a setuptools problem, but setuptools on gentoo is getting pretty far behind the current setuptools release.
python-2.7.7-r1000 does not exist in the gentoo repository. You probably meant to file a bug for Funtoo or Progress overlay.
bootstrap.py script without --allow-site-packages option downloads and uses a version of Setuptools hardcoded in https://bootstrap.pypa.io/ez_setup.py instead of a version installed by Portage. Does problem occur for you with Setuptools 4.0.1? Try in this way: wget https://pypi.python.org/packages/source/s/setuptools/setuptools-4.0.1.tar.gz tar -xzf setuptools-4.0.1.tar.gz wget http://downloads.buildout.org/2/bootstrap.py export http_proxy=... PYTHONPATH="$(pwd)/setuptools-4.0.1" python2.7 bootstrap.py --allow-site-packages