Comment 2 for bug 721203

Revision history for this message
Rafael Monnerat (rafael-nexedi) wrote :

I'm quite interested in this topic.

I think the smarter selection should be part of zc.buildout itself, and not only for bootstrapping. ie.: If index is not defined, select a mirror that works dynamically.

You can be also a bit clever to detect mirrors, using pypi API, maybe you can get inspiration from pip implementation:

 - https://bitbucket.org/ianb/pip/src/8b6c6fccf0f1/pip/index.py

By using this API

    >>> from pip.index import get_mirrors
    >>> get_mirrors()
    ['a.pypi.python.org', 'b.pypi.python.org', 'c.pypi.python.org',
    'd.pypi.python.org']