On 7/24/06, Andrew Straw <[EMAIL PROTECTED]> 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?

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/numpy-discussion

Reply via email to