Kevin Dangoor wrote:
> Phillip has changed
> how setuptools interprets version numbers to catch stuff like rc's and
> betas.

Not exactly.  What I changed is that setuptools always interpreted a
'-' as indicating a post-release patch.  This meant that if you put a
'-' before 'rc' or 'beta' or whatever, it was still considered a
*post*-release, which caused all the CherryPy upgrade problems.

Setuptools always interpreted numbers like '2.1.0rc2' or '0.2b5'
correctly; it was only the inclusion of a '-' that threw it off.  Now,
the '-' is ignored if it precedes something that would otherwise be
considered a pre-release like 'rc' or 'b'.

Note that this means that using the very latest (i.e. today's version,
0.6a9dev-r41630) setuptools (ez_setup.py setuptools==dev) is necessary
if you're upgrading CherryPy or trying out the new Subway release, as
both have the problematic '-rc' versions out there.  When CherryPy did
it, I sort of assumed it was a fluke.  When Subway did it too, it made
it abundantly clear that the dash-is-postrelease logic was not
intuitive, and I had a flash as to how I could fix it in a way that
hopefully won't break anything else.  :)

Reply via email to