[PEAK] Downloading via redirection

Phillip J. Eby pje at telecommunity.com
Fri Mar 23 19:30:45 EDT 2007

At 04:13 PM 3/23/2007 -0400, Yang wrote:
>Hi all, easy_install is a fantastic tool, but for some reason it
>doesn't seem to handle HTTP redirects.

It handles redirects just fine:

$ easy_install http://assorted.sf.net/python-commons/download/index.php
Downloading http://assorted.sf.net/python-commons/download/index.php
Processing index.php
Running python-commons-0.1\setup.py -q bdist_egg --dist-dir 
Adding python-commons 0.1 to easy-install.pth file

Processing dependencies for python-commons==0.1
Finished processing dependencies for python-commons==0.1

However, it *doesn't* have aby way of knowing that 'index.php' is in fact 
'python-commons-0.1.tgz', when it sees it mentioned in a link on a web 
page.  If you want it to be able to know this, you need to add 
'#egg=python_commons-0.1' to the end of your link, e.g.:


This will be recognized as what it is: a download link for the source of 

>Would you consider adding redirection support?

No, since it's already there.  :)

More information about the PEAK mailing list