<br><br><div class="gmail_quote">On Sun, Dec 18, 2011 at 10:32 AM, Hartmut Goebel <span dir="ltr">&lt;<a href="mailto:h.goebel@goebel-consult.de">h.goebel@goebel-consult.de</a>&gt;</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="&#39;courier
            new&#39;, monospace">Processing download</font></div>
        <div><font size="1" face="&#39;courier
            new&#39;, monospace">error: Couldn&#39;t find a setup script in
            c:\docume~1\schoenb\locals~1\temp\easy_install-m52ynu\download</font></div>
      </blockquote>
      <font size="1" face="&#39;courier new&#39;,
        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 &quot;download&quot;, no .egg extension<br>
    <br>
    ...<br>
    This *reall* issue is sourceforge adding a &quot;/download&quot; 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&#39;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 &quot;Yuck&quot; is not mine!):</div>
<div><br></div><div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">def egg_info_for_url(url):</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">    scheme, server, path, parameters, query, fragment = urlparse.urlparse(url)</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">    base = urllib2.unquote(path.split(&#39;/&#39;)[-1])</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">    if server==&#39;<a href="http://sourceforge.net">sourceforge.net</a>&#39; and base==&#39;download&#39;:    # XXX Yuck</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">        base = urllib2.unquote(path.split(&#39;/&#39;)[-2])</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">    if &#39;#&#39; in base: base, fragment = base.split(&#39;#&#39;,1)</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">    return base,fragment</font></div></div><div><br></div><div>Oliver</div><div><br></div></div>