From: Sasha <nd...@ma...> - 2006-07-24 22:38:58
|
On 7/24/06, Andrew Straw <str...@as...> 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? |