Re: [Distutils] easy_install picks windows egg on Linux

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....
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.

On Thu, 21 May 2009 16:52:04 -0400, "P.J. Eby" <pje@telecommunity.com> wrote:
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....
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.
"they" would be me. It seems the renaming was a result of copy/pasting some other piece of build automation combined with me not really thinking about whether the name might be important.
(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.)
Filed, issue 71.
zipimport.ZipImportError: not a Zip file
This part is an expected failure with a --dry-run.
Makes sense. Thanks, Jean-Paul
participants (2)
-
Jean-Paul Calderone
-
P.J. Eby