[Numpy-discussion] Please comment on SVN versioning convention
ndarray at mac.com
Mon Jul 24 17:38:42 CDT 2006
On 7/24/06, Andrew Straw <strawman at astraw.com> wrote:
> 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
More information about the Numpy-discussion