[Python-modules-team] Bug#825900: Bug#825900: python-numpy: version number breaks distutils.version.StrictVersion

Ole Streicher olebole at debian.org
Tue May 31 09:50:11 UTC 2016


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.



More information about the Python-modules-team mailing list