[Distutils] [PATCH] Letting distribute try different download URLs
lists at asheesh.org
Thu Aug 18 17:34:06 CEST 2011
I have a very real-world problem I'm hitting with distribute, and I'm
proposing a patch.
Right now, PyPI points to a tar.gz for the 'nose' package that returns
Searching for nose==1.0.0
Best match: nose 1.0.0
error: Can't download http://somethingaboutorange.com/mrl/projects/nose/nose-1.0.0.tar.gz: 404 Not Found
I propose that if distribute hits a HTTP error like this, it keeps looping and
tries the next available tar.gz for nose. In my case, I think it then succeed
because I have dependency_links in my setup() call (in my setup.py) that point
to where I have been stashing copies of my own dependencies:
So I propose this patch. It is pretty straightforward. I hope that you accept
it, and if not, that you explain why.
I have re-run the test suite after the addition of my patch, and it does not
break any existing tests.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1648 bytes
Desc: not available
More information about the Distutils-SIG