<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"><html><head><meta name="qrichtext" content="1" /><style type="text/css">p, li { white-space: pre-wrap; }</style></head><body style=" font-family:'Tahoma'; font-size:12pt; font-weight:400; font-style:normal;">Great. I just pushed onto the various trackers tracking the issue -- among which is the python tracker -- support for prerelease packages (...dev and ...dev-r77655 versioned packages) so they do not overwrite alphas, betas, or final -1 and above releases.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>El Miércoles 11 Marzo 2009, Tarek Ziadé escribió:<br>
> Hi,<br>
><br>
> Great work !<br>
><br>
> FYI it's on my pile in the bug tracker in Python. I'll try to work on<br>
> these before Pycon<br>
><br>
> Also, note that I am planning to release Distutils as a standalone<br>
> package before Pycon;<br>
> since the current trunk targets Python 2.3 to 3.1<br>
><br>
> Regards<br>
> Tarek<br>
><br>
> On Wed, Mar 11, 2009 at 1:28 PM, Gerry Reno <greno@verizon.net> wrote:<br>
> > Manuel Amador (Rudd-O) wrote:<br>
> ><br>
> > Hello, guys,<br>
> ><br>
> > I have fixed distutils (and setuptools remains working) with the attached<br>
> > patch. Now, RPMs will be built according to the Fedora Package Naming<br>
> > Guidelines:<br>
> ><br>
> > http://fedoraproject.org/wiki/Packaging/NamingGuidelines#Non-Numeric_Vers<br>
> >ion_in_Release<br>
> ><br>
> > which I understand to be the most useful reference in terms of naming<br>
> > pre-release packages. This should work correctly in at least:<br>
> ><br>
> > - Fedora<br>
> > - RHEL<br>
> > - SUSE<br>
> ><br>
> > I urge you patch your python 2.4s and 2.5s and 2.6s and push this update<br>
> > to distributions. I have done that myself at my own repository.<br>
> ><br>
> > Now we can enjoy one more reason to build RPMs (and eggs! ... according<br>
> > to my workbench at http://yum.rudd-o.com/SCRIPTS/ -- feel free to pick<br>
> > its brains) DIRECTLY from the cheese shop, especially if you're using<br>
> > pip.<br>
> ><br>
> > Oh, I also have pip at my repo (cd ../RPMS/noarch in my workbench).<br>
> ><br>
> > See attached patch. I will log bugs where it corresponds too.<br>
> > --<br>
> ><br>
> > Manuel Amador (Rudd-O) <rudd-o@rudd-o.com><br>
> > Rudd-O.com - http://rudd-o.com/<br>
> > GPG key ID 0xC8D28B92 at http://wwwkeys.pgp.net/<br>
> ><br>
> > Now playing, courtesy of Amarok: Aqua - Cartoon heroes<br>
> > Windows 95 is not a virus. Viruses actually do something.<br>
> ><br>
> > Hi Manuel,<br>
> > You worked on my problem! Great.<br>
> > So today what we have been doing to deal with the pre-release and<br>
> > lexical ordering problem involving pre-releases is this:<br>
> > We impose a restriction on how the pre-release is identified. So for<br>
> > example if you intend to end up with a final version-release of 5.0.0-1<br>
> > and you want to first put out some betas or release candidates then we<br>
> > have to name them as, 5.0.0-0_beta1, or 5.0.0-0_rc1 and this is so that<br>
> > the lexical ordering for RPM will be correct. In other words you must<br>
> > put the pre-release designation into the 'release' part of<br>
> > VERSION-RELEASE. What we had seen developers doing previously was to<br>
> > name these as 5.0.0_beta1 or 5.0.0_rc1 (making the pre-release<br>
> > designation part of the 'version' string) which then did not work for the<br>
> > lexical ordering of the final release of 5.0.0-1 because 5.0.0 (version)<br>
> > was not lexically superior to 5.0.0_rc1. So we were able to solve this<br>
> > problem without any code changes to distutils. But this also presented a<br>
> > challenge for the other distribution targets such as 'sdist' because they<br>
> > were totally unaware of this 'version-release' combination and only knew<br>
> > about 'version'. So as a workaround we were doing this:<br>
> > # WORKAROUND<br>
> > # define both version AND release<br>
> > version='5.0.0'<br>
> > release='1'<br>
> > # combine them for all targets except 'bdist_rpm'<br>
> > if sys.argv[1] != 'bdist_rpm':<br>
> > version = version+'-'+release<br>
> > So this wasn't perfect but it actually worked quite well and we could get<br>
> > 'sdist' to work properly in conjunction with 'bdist_rpm'.<br>
> > So now with your patch all the targets should be able to set and use both<br>
> > 'version' and 'release' and we don't need our workaround and that will be<br>
> > great.<br>
> ><br>
> > Regards,<br>
> > Gerry<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p><p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>-- <br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>        Manuel Amador (Rudd-O) <rudd-o@rudd-o.com><br>
        Rudd-O.com - http://rudd-o.com/<br>
        GPG key ID 0xC8D28B92 at http://wwwkeys.pgp.net/<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>A copy of the universe is not what is required of art; one of the damned<br>
things is ample.<br>
                -- Rebecca West<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p></body></html>