[Distutils] Numeric-16.0 problem

Rene Liebscher R.Liebscher@gmx.de
Wed Aug 30 06:47:01 2000


Robin Becker wrote:
> 
> I guess this error is caused by Numeric-16.0 taking the distutils version string
> list a bit too seriously. The setup.py script wants to do
> if vs[0] < 1 and vs[1] < 9:
>     raise SystemExit, "Please see README: Distutils-0.9 or later required."
> 
> is there a correct way to get this kind of version number?
> 
Distutils has some special classes for dealing with version
numbers, see distutils/version.py .

Your code should then look similar to this:


from distutils.version import StrictVersion 

if StrictVersion(v) < "0.9":
    raise SystemExit, "Please see README: Distutils-0.9 or later
required."



Kind regards

Rene Liebscher