[Numpy-discussion] Please comment on SVN versioning convention

David M. Cooke cookedm at physics.mcmaster.ca
Mon Jul 24 18:10:22 CDT 2006


On Mon, Jul 24, 2006 at 04:03:13PM -0700, Andrew Straw wrote:
> Sasha wrote:
> 
> >On 7/24/06, Andrew Straw <strawman at astraw.com> wrote:
> >
> >>BTW, Fernando, all this is so that we can still have the svn revision
> >>number in __version__, but so that it doesn't screw up sorting.
> >
> >Sorting __version__ is screwed up regardless of svn revision number:
> >
> >>>>'1.9' < '1.10'
> >>>>        
> >>>>
> >False
> >
> Not if you parse __version__ with something that understands version
> numbers.

...and we've already got something for that: distutils.version.LooseVersion
(or StrictVersion).

-- 
|>|\/|<
/--------------------------------------------------------------------------\
|David M. Cooke                      http://arbutus.physics.mcmaster.ca/dmc/
|cookedm at physics.mcmaster.ca




More information about the Numpy-discussion mailing list