<div dir="ltr"><br><br><div class="gmail_quote">2008/8/20 Phillip J. Eby <span dir="ltr"><<a href="mailto:pje@telecommunity.com">pje@telecommunity.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
At 07:22 PM 8/13/2008 +0200, Tarek Ziade wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
2008/8/12 Phillip J. Eby <<mailto:<a href="mailto:pje@telecommunity.com" target="_blank">pje@telecommunity.com</a>><a href="mailto:pje@telecommunity.com" target="_blank">pje@telecommunity.com</a>><div class="Ih2E3d">
<br>
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.<br>
<br>
Is this a feature you would like to see in setuptools ? If so I can write a patch,<br>
</div></blockquote>
<br>
Just be aware that I'm likely to be rather picky about how it works. :)</blockquote><div><br>I bet, I'll give a try and submit it :)<br> <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d"><br>
<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Besides this feature, there's one feature we started to add on zc.buildout but could be put in setuptools's PackageIndex as well I believe :<br>
</blockquote>
<br></div>
Having the option to set a short timeout for *connections* would be useful, I think, just as long as it doesn't end up cutting off slow downloads. I'd prefer it to be controllable from the command line, nonetheless.<br>
<br>
</blockquote></div><br>As far as I know, the socket timeout will not apply on a download that is beeing processed, but only on 'sleeping' connections.<br>For instance, if I download Firefox with urlopen(), it takes up to 1 second to read() it and the timeout won't occur in that case :<br>
<br>>>> import socket<br>>>> socket.setdefaulttimeout(1)<br>>>> import urllib2<br>>>> g = urllib2.urlopen('<a href="http://www.gtlib.gatech.edu/pub/mozilla.org/firefox/releases/3.0.1/mac/fr/Firefox%203.0.1.dmg">http://www.gtlib.gatech.edu/pub/mozilla.org/firefox/releases/3.0.1/mac/fr/Firefox%203.0.1.dmg</a>')<br>
>>> g.read()<br>xxxxxxx I get firefox dmg file here<br><br>Although I don't know how it behaves on stale connections, I will digg on this<br><br>Tarek<br><br clear="all"><br>-- <br>Tarek Ziadé - Directeur Technique<br>
INGENIWEB (TM) - SAS 50000 Euros - RC B 438 725 632<br>Bureaux de la Colline - 1 rue Royale - Bâtiment D - 9ème étage<br>92210 Saint Cloud - France<br>Phone : 01.78.15.24.00 / Fax : 01 46 02 44 04<br><a href="http://www.ingeniweb.com">http://www.ingeniweb.com</a> - une société du groupe Alter Way<br>
</div>