[Distutils] [Catalog-sig] High-availability for PyPI, mirroring infrastructures?

Tarek Ziadé ziade.tarek at gmail.com
Fri Aug 22 00:12:16 CEST 2008

On Thu, Aug 21, 2008 at 2:59 PM, Tarek Ziade <tarek.ziade at ingeniweb.com>wrote:

> 2008/8/20 Phillip J. Eby <pje at telecommunity.com>
>> At 07:22 PM 8/13/2008 +0200, Tarek Ziade wrote:
>>> 2008/8/12 Phillip J. Eby <<mailto:pje at telecommunity.com>
>>> pje at telecommunity.com>
>>> What you really want/need is to make the PackageIndex support retrieval
>>> from multiple index urls; the PackageIndex itself aggregates available
>>> packages from sources such as the local file system, -f urls, and an
>>> underlying package index.  So having multiple aggregators would duplicate
>>> processing, and deprive you of a global ordering of package precedences.
>>> Is this a feature you would like to see in setuptools ? If so I can write
>>> a patch,
>> Just be aware that I'm likely to be rather picky about how it works.  :)
> I bet, I'll give a try and submit it :)

Ok I have submitted a patch here http://bugs.python.org/setuptools/issue32

I have added a test where I played with two indexes: Pypi and another custom
one, that hold a package version
PyPI don't.

I changed the code accordingly,  and recorded all urllib2.urlopen
input/output into a mapping saved in a shelve file,
so the test can work without external calls. (maybe this could be pushed in
a  helper in the sandbox)

I have also added a deprecation warning, but I don't know if this is
something you want..

I have tested it successfully with several buildouts and I will test it more
this week, together with your latest bug fixes.


Tarek Ziadé | Association AfPy | www.afpy.org
Blog FR | http://programmation-python.org
Blog EN | http://tarekziade.wordpress.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20080822/db09c240/attachment.htm>

More information about the Distutils-SIG mailing list