On 31.05.2016 11:41, Sandro Tosi wrote:
>> They try to catch changes in numpy over the years to be compliant to
>> older numpy versions as well. The source code in question is here:
>>
>> https://github.com/radio-astro-tools/spectral-cube/blob/master/spectral_cube/np_compat.py
>>
>> This is still useful to allow backporting to Debian Jessie, so I
>> wouldn't like to remove it.
> 
> then use LooseVersion instead of StrictVersion?

In that specific case LooseVersion would work; however LooseVersion is
wrong for prereleases:

>>> from distutils.version import LooseVersion
>>> LooseVersion("1.11rc1") < LooseVersion("1.11")
False

I am going to discuss that with upstream.

_______________________________________________
Python-modules-team mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/python-modules-team

Reply via email to