30 Aug
2000
30 Aug
'00
6:47 a.m.
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