[Distutils] Numeric-16.0 problem
Paul F. Dubois
dubois@users.sourceforge.net
Wed Aug 30 18:40:03 2000
OK, I'll fix it. But first convince me this "<" really works though?
0.10 vs. 0.9, for example?
> -----Original Message-----
> From: distutils-sig-admin@python.org
> [mailto:distutils-sig-admin@python.org]On Behalf Of Rene Liebscher
> Sent: Wednesday, August 30, 2000 3:43 AM
> To: Robin Becker
> Cc: distutils-sig@python.org
> Subject: Re: [Distutils] Numeric-16.0 problem
>
>
> 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
>
> _______________________________________________
> Distutils-SIG maillist - Distutils-SIG@python.org
> http://www.python.org/mailman/listinfo/distutils-sig
>