[Python-bugs-list] [ python-Bugs-424680 ] distutils module version # not StrictVer
noreply@sourceforge.net
noreply@sourceforge.net
Wed, 06 Jun 2001 08:46:12 -0700
Bugs item #424680, was updated on 2001-05-16 15:33
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=424680&group_id=5470
Category: Distutils
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: A.M. Kuchling (akuchling)
Summary: distutils module version # not StrictVer
Initial Comment:
There is a fairly detailed definition in the distutils
module (in version.py) about valid (or Strict) version
numbers. However the version number of the distutils
module does not conform to this numbering scheme.
Specifically
Python 2.1 (#15, Apr 16 2001, 18:25:49) [MSC 32 bit
(Intel)] on win32
Type "copyright", "credits" or "license" for more
information.
>>> import distutils
>>> distutils.__version__
'1.0.2pre'
>>> from distutils.version import StrictVersion
>>> StrictVersion(distutils.__version__)
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "c:\program files\python21
\lib\distutils\version.py", line 42, in __init__
self.parse(vstring)
File "c:\program files\python21
\lib\distutils\version.py", line 109, in parse
raise ValueError, "invalid version number '%s'" %
vstring
ValueError: invalid version number '1.0.2pre'
>>>
----------------------------------------------------------------------
>Comment By: A.M. Kuchling (akuchling)
Date: 2001-06-06 08:46
Message:
Logged In: YES
user_id=11375
Fixed in the current CVS. (This is also an obvious fix
for 2.1.1.)
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=424680&group_id=5470