[Numpy-discussion] Please comment on SVN versioning convention

Sasha ndarray at mac.com
Mon Jul 24 18:38:42 EDT 2006


On 7/24/06, Andrew Straw <strawman at astraw.com> wrote:
[snip]
> The concern is that there are a bazillion ways of sorting version
> numbers but the version numbers from numpy's current svn tree don't sort
> with (m)any of them. Sorting strings in Python is one way, using
> setuptools or debian's dpkg are other ways.

Sorting numbers as strings is a problem no matter what tools you use.
'1000' is sorted before '999' in every tool I know of. The only proper
way to solve this problem is to make svn revision available as an
integer and sort them as integers. This integer may go in version_info
tuple or in a separate variable.  The same information may be encoded
into a sortable string using appropriate padding, but I don't see much
need for that.  Do you expect creating debian's dpkg from a
non-release version?




More information about the NumPy-Discussion mailing list