[Distutils] setuptools/buildout: why only one index server configurable

Tarek Ziadé ziade.tarek at gmail.com
Sun Nov 30 14:14:58 CET 2008


On Wed, Nov 26, 2008 at 6:21 PM, Phillip J. Eby <pje at telecommunity.com> wrote:
> At 08:33 AM 11/26/2008 +0100, Tarek Ziadé wrote:
>>
>> On Wed, Nov 26, 2008 at 8:22 AM, Andreas Jung <lists at zopyx.com> wrote:
>> > Hi there,
>> >
>> > in buildout I can define only one alternative index server using 'index
>> > =
>> > http://pypi.zopyx.com'. Now we are in the situation where we are running
>> > two
>> > internal index servers (one for our own internal packages and one PyPI
>> > mirror). Is there some reason for this limitation? I assume this is a
>> > limitation/feature coming from setuptools?
>>
>> Yes it is.  That is exactly where setuptools needs to evolve.
>>
>> For the record: I have asked for that a few months ago, and Jim said
>> he wanted to  stick with setuptools.
>>
>> So proposed a patch in setuptools to be able to merge several indexes,
>> (see http://bugs.python.org/setuptools/issue32)
>>
>> But it hasn't been reviewed yet.
>
> Actually, I've reviewed it, I just haven't commented on it yet.  There are a
> few minor issues that I know how they should be fixed (e.g. adding an
> .isindex(url) method instead of hardcoding loops everywhere), but there's a
> bigger picture issue (search order among indexes) that I'm not certain about
> yet, and it interacts with some other issues (like option naming, creation
> signature of PackageIndex, etc.)
>
> So, I'm still mulling that part over.

Ok great. For the ordering I supposed that the order given in the option could
be the priority: the first index is tried, then the second, etc.




>
>



-- 
Tarek Ziadé | Association AfPy | www.afpy.org
Blog FR | http://programmation-python.org
Blog EN | http://tarekziade.wordpress.com/


More information about the Distutils-SIG mailing list