[Python-apps-team] Bug#683133: robust cython version comparisons Was: Bug#683133: xpra: robustify ...

Antoine Martin antoine at nagafix.co.uk
Mon Jul 30 06:04:37 UTC 2012


(snip)
> $> python -c 'from distutils.version import LooseVersion as LV; print LV("0.17") < LV("0.17.beta1")'
> True
>
> it is ignorant about suffixes like .beta (thus above result) but is robust
> enough in general and should work for your case I guess with min 0.14 version.
I've re-done the change using LooseVersion:
https://www.xpra.org/trac/changeset/1205

The diff against the previous code (instead of what I had merged since) 
is here:
https://www.xpra.org/trac/changeset?old_path=%2Ftrunk%2Fsrc%2Fsetup.py&old=1203&new_path=%2Ftrunk%2Fsrc%2Fsetup.py&new=1205

Let me know if this works/looks ok to you and I'll apply to the stable 
0.3.x and 0.4.x branches.

Thanks
Antoine



More information about the Python-apps-team mailing list