add --allow-hosts #623

Closed
tarekziade opened this Issue Aug 2, 2012 · 8 comments

Projects

None yet

7 participants

@tarekziade

Easy_install offers the --allow-hosts which blocks any call on a server that's now whitelisted.

very handy to cut all the link following, when you have a pypi mirror and don't want pip to hit the net.

see: http://packages.python.org/distribute/easy_install.html#restricting-downloads-with-allow-hosts

@carljm
Contributor
carljm commented Aug 6, 2012

Yes, this would be a useful addition.

@qwcode
Contributor
qwcode commented Aug 10, 2012

"when you have a pypi mirror and don't want pip to hit the net."

hey, just curious, what's the scenario where pip hits the net with --index-url pointing to your local mirror?
e.g., I'm familiar with the z3c mirror, and that seems to clean away all non-local links for me.
from external "dependency_links" in setup.py? or what?

@carljm
Contributor
carljm commented Aug 10, 2012

External dependency_links in setup.py, or just link-scraping - if you have an actual pypi mirror it will still contain links to external sites for many packages.

@pnasrat
Contributor
pnasrat commented Aug 10, 2012

Do we also want --deny-hosts for symmetry cf tcp wrappers.

@laiyonghao

It is very useful in China, where sourceforge.net and many other sites are blocked by GFW. By add allow_hosts configuration to ~/.pydistutils.cfg, easy_install will ignore blocked sites to reduce download time, instead stupid wait for time out.

@domenkozar
Contributor

+1

@dstufft
Member
dstufft commented Jun 5, 2013

This is more or less going to be implemented differently shortly. Hopefully in time for the 1.4 release.

@dstufft
Member
dstufft commented Jun 11, 2013

The primary driver behind this request has been fixed. It was not fixed in the way specified in the ticket, but I believe the way it's fixed is a much more user friendly and safe method of doing so.

@dstufft dstufft closed this Jun 11, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment