<div dir="ltr"><br><br><div class="gmail_quote">2008/8/20 Phillip J. Eby <span dir="ltr">&lt;<a href="mailto:pje@telecommunity.com">pje@telecommunity.com</a>&gt;</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 &lt;&lt;mailto:<a href="mailto:pje@telecommunity.com" target="_blank">pje@telecommunity.com</a>&gt;<a href="mailto:pje@telecommunity.com" target="_blank">pje@telecommunity.com</a>&gt;<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. &nbsp;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&#39;m likely to be rather picky about how it works. &nbsp;:)</blockquote><div><br>I bet, I&#39;ll give a try and submit it :)<br>&nbsp;<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&#39;s one feature we started to add on zc.buildout but could be put in setuptools&#39;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&#39;t end up cutting off slow downloads. &nbsp;I&#39;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 &#39;sleeping&#39; connections.<br>For instance, if I download Firefox with urlopen(), it takes up to 1 second to read() it and the timeout won&#39;t occur in that case :<br>
<br>&gt;&gt;&gt; import socket<br>&gt;&gt;&gt; socket.setdefaulttimeout(1)<br>&gt;&gt;&gt; import urllib2<br>&gt;&gt;&gt; g = urllib2.urlopen(&#39;<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>&#39;)<br>
&gt;&gt;&gt; g.read()<br>xxxxxxx I get firefox dmg file here<br><br>Although I don&#39;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>