<br><br><div class="gmail_quote">On Sun, Dec 18, 2011 at 10:32 AM, Hartmut Goebel <span dir="ltr"><<a href="mailto:h.goebel@goebel-consult.de">h.goebel@goebel-consult.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<u></u>
<div bgcolor="#ffffff" text="#000000">
Am 18.12.2011 06:07, schrieb oliver:
<blockquote type="cite"><br>
<blockquote style="margin:0pt 0pt 0pt 40px;border:medium none;padding:0px">
<div><font size="1" face="'courier
new', monospace">Processing download</font></div>
<div><font size="1" face="'courier
new', monospace">error: Couldn't find a setup script in
c:\docume~1\schoenb\locals~1\temp\easy_install-m52ynu\download</font></div>
</blockquote>
<font size="1" face="'courier new',
monospace">Downloading <a href="http://sourceforge.net/projects/pubsub/files/pubsub/3.1.1b1/PyPubSub-3.1.1b1-py2.6.egg/download" target="_blank">http://sourceforge.net/projects/pubsub/files/pubsub/3.1.1b1/PyPubSub-3.1.1b1-py2.6.egg/download</a></font>
<div><br>
</div>
</blockquote>
The filename is "download", no .egg extension<br>
<br>
...<br>
This *reall* issue is sourceforge adding a "/download" to the URL. I
filed a bug a few years ago, but as expected, it has been ignored.<br>
<br>
Nevertheless I once wrote a script for handling this bug. I'll
prepre a patch for easy_install when I find some time.<span class="HOEnZb"><font color="#888888"><br><br></font></span></div></blockquote><div><br></div><div>Thanks Hartmut, that would be awesome. There is some code in package_index.py that attempts to handle it but maybe the issue is other (btw the "Yuck" is not mine!):</div>
<div><br></div><div><div><font class="Apple-style-span" face="'courier new', monospace">def egg_info_for_url(url):</font></div><div><font class="Apple-style-span" face="'courier new', monospace"> scheme, server, path, parameters, query, fragment = urlparse.urlparse(url)</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> base = urllib2.unquote(path.split('/')[-1])</font></div><div><font class="Apple-style-span" face="'courier new', monospace"> if server=='<a href="http://sourceforge.net">sourceforge.net</a>' and base=='download': # XXX Yuck</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> base = urllib2.unquote(path.split('/')[-2])</font></div><div><font class="Apple-style-span" face="'courier new', monospace"> if '#' in base: base, fragment = base.split('#',1)</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> return base,fragment</font></div></div><div><br></div><div>Oliver</div><div><br></div></div>