[Catalog-sig] Mirror list detection/construction - PEP 381

P.J. Eby pje at telecommunity.com
Thu Jul 22 05:39:54 CEST 2010


At 05:10 AM 7/22/2010 +0200, Jesus Cea wrote:
>On 22/07/10 03:55, P.J. Eby wrote:
> > Not a bad idea.  My main sticking point for adding this to easy_install
> > is that it doesn't currently maintain any state like this, and there's
> > no obvious place to put it.  Silently rewriting config files would be
> > evil, and given that distutils has three layers of config files, it's
> > never really clear which one you'd want to write to anyway.  Most
> > likely, I'll need to just use "try the default or specified one first,
> > then fall back to randomly-selected mirrors.
>
>You can try all in parallel (threads!), choose the faster and send the
>request to it. If that fails, try again, discarding that node. If you
>have discarded all servers, start over again a couple of times. If that
>fails, report failure to the user and surrender.

Are you actually suggesting I add threads to *easy_install*?

I'm not sure I could handle that kind of excitement.  ;-)



More information about the Catalog-SIG mailing list