On Sun, Dec 18, 2011 at 10:32 AM, Hartmut Goebel <[email protected] > wrote:
> ** > Am 18.12.2011 06:07, schrieb oliver: > > > Processing download > error: Couldn't find a setup script in > c:\docume~1\schoenb\locals~1\temp\easy_install-m52ynu\download > > Downloading > http://sourceforge.net/projects/pubsub/files/pubsub/3.1.1b1/PyPubSub-3.1.1b1-py2.6.egg/download > > The filename is "download", no .egg extension > > ... > 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. > > Nevertheless I once wrote a script for handling this bug. I'll prepre a > patch for easy_install when I find some time. > > 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!): def egg_info_for_url(url): scheme, server, path, parameters, query, fragment = urlparse.urlparse(url) base = urllib2.unquote(path.split('/')[-1]) if server=='sourceforge.net' and base=='download': # XXX Yuck base = urllib2.unquote(path.split('/')[-2]) if '#' in base: base, fragment = base.split('#',1) return base,fragment Oliver
_______________________________________________ Distutils-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/distutils-sig
