Downloading pythonutils from pypi fails even though it is downloading a
perfectly good .zip source file.

> easy_install pythonutils==0.3.0
Searching for pythonutils==0.3.0
Reading http://pypi.python.org/simple/pythonutils/
Couldn't find index page for 'pythonutils' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://pypi.python.org/simple/
Reading http://pypi.python.org/simple/Pythonutils/
Reading http://www.voidspace.org.uk/python/modules.shtml#pythonutils
Reading
http://www.voidspace.org.uk/cgi-bin/voidspace/downman.py?file=pythonutils-0.
2.3.zip
Reading
http://www.voidspace.org.uk/cgi-bin/voidspace/downman.py?file=pythonutils-0.
2.5.zip
Reading
http://www.voidspace.org.uk/cgi-bin/voidspace/downman.py?file=pythonutils-0.
3.0.zip
No local packages or download links found for pythonutils==0.3.0
error: Could not find suitable distribution for
Requirement.parse('pythonutils==0.3.0')

If I download the .zip file manually and easy_install the zip file, the
install goes great.  I think the problem is related to the .py name
appearing in the filename.

> easy_install
http://www.voidspace.org.uk/cgi-bin/voidspace/downman.py?file=pythonutils-0.
3.0.zip
Downloading
http://www.voidspace.org.uk/cgi-bin/voidspace/downman.py?file=pythonutils-0.
3.0.zip
error: Can't process plain .py files without an '#egg=name-version' suffix
to enable automatic setup script generation.

I'm guessing that whatever easy_install uses for downloading the file ends
up naming it downman.py (or something similar).

I checked the headers on the response from voidspace, and I see voidspace is
in fact supplying the content-disposition header:

content-disposition: attachment; filename= "pythonutils-0.3.0.zip"

So it appears that whatever downloader easy_install is using isn't honoring
the content-disposition header. or the check for python-ness is otherwise
getting a false positive.

This problem was observed in Windows Vista 64-bit with Python 2.5.2 32-bit
and setuptools 0.6c9.

Should I post a bug in bugtracker on this issue?

Regards,
Jason

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Distutils-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/distutils-sig

Reply via email to