[Distutils] easy_install picks windows egg on Linux
P.J. Eby
pje at telecommunity.com
Thu May 21 22:52:04 CEST 2009
At 01:49 PM 5/21/2009 -0400, Jean-Paul Calderone wrote:
>Downloading
>http://pypi.python.org/packages/2.5/p/pyOpenSSL/pyOpenSSL-0.9.py2.5-winxp32.egg#md5=38d273a65bae20f527ff8d21c225d10e
What's bizarre is that that's not a valid egg filename; they must
have renamed it at some point.
The filename is invalid in two ways: first, it has a '.' between the
version and the Python version (it should be a '-') and second,
'winxp32' is not a valid platform name.
I would suggest contacting the PyOpenSSL maintainers to find out why
they have renamed it in this fashion; .egg files should never be
renamed under any circumstances.
(I'm actually surprised that easy_install is recognizing it at all,
but basically it appears to be treating it as if it's a
non-platform-specific egg. That's arguably a bug.)
>zipimport.ZipImportError: not a Zip file
This part is an expected failure with a --dry-run. It perhaps could
be fixed, but the problem is that with --dry-run on, the egg is not
moved to the target directory, so when it tries to create a
Distribution object for the installed egg, it fails. This has
nothing to do with the version problem - you will probably see this
occur at the end of any --dry-run install, unless an
identically-named egg was was already present.
More information about the Distutils-SIG
mailing list