easy_install prefering filename over #egg

We've been building some custom eggs for the lxml trunk and we uploaded the packages to our wiki, which replaced the .'s with -'s. This messed up the filenames, so we added #egg in an effort to correct that: http://www.openplans.org/projects/opencore/dependencies/lxml-2-0alpha5-py2-4... But it seems that easy_install prefers the base name, not the fragment, and so it parsed this as an lxml 2 egg, with 0alpha5blahblahblah as the platform(?)... I'm not sure exactly how it parsed it, but it got it wrong. It seems like easy_install should prefer fragments over the filename itself, as the fragments will only be there if someone deliberately adds them. Ian

Ian Bicking wrote:
We've been building some custom eggs for the lxml trunk and we uploaded the packages to our wiki, which replaced the .'s with -'s. This messed up the filenames, so we added #egg in an effort to correct that:
http://www.openplans.org/projects/opencore/dependencies/lxml-2-0alpha5-py2-4...
But it seems that easy_install prefers the base name, not the fragment, and so it parsed this as an lxml 2 egg, with 0alpha5blahblahblah as the platform(?)... I'm not sure exactly how it parsed it, but it got it wrong.
It seems like easy_install should prefer fragments over the filename itself, as the fragments will only be there if someone deliberately adds them.
Actually, it just occurred to me that there's a link on the page with the #egg, and one without, and probably easy_install was just looking at the link without the fragment. So maybe our plan to use #egg to correct the link just wasn't going to work with the site. -- Ian Bicking : ianb@colorstudy.com : http://blog.ianbicking.org

At 12:15 PM 11/19/2007 -0600, Ian Bicking wrote:
We've been building some custom eggs for the lxml trunk and we uploaded the packages to our wiki, which replaced the .'s with -'s. This messed up the filenames,
Stop right there. That's the problem. You also messed up the #egg part, by adding extra junk into the version, but that's irrelevant. The simple fact is that egg files cannot be renamed without affecting their meaning.
participants (3)
-
Ian Bicking
-
Ian Bicking
-
Phillip J. Eby