[Python-bugs-list] [ python-Bugs-417796 ] illegal version 1.0.2pre
noreply@sourceforge.net
noreply@sourceforge.net
Wed, 17 Oct 2001 00:14:00 -0700
Bugs item #417796, was opened at 2001-04-20 21:24
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=417796&group_id=5470
Category: Distutils
Group: None
>Status: Closed
Resolution: Fixed
Priority: 5
Submitted By: Garth T Kidd (gtk)
Assigned to: Thomas Heller (theller)
Summary: illegal version 1.0.2pre
Initial Comment:
Description:
The version in distutils/__init__ doesn't conform to
the strict versioning guidelines in distutils/version,
resulting in failure when trying to use distutils to
install 4Suite (and perhaps other modules).
Workaround:
Hand-edit distutils/__init__.py to remove "pre".
Pointers to vital stuff in code:
Lib/distutils/__init__.py:
__version__ = "1.0.2pre"
Lib/distutils/version.py:
A version number consists of two or three dot-
separated numeric components, with an optional "pre-
release" tag on the end. The pre-release tag consists
of the letter 'a' or 'b' followed by a number.
Demonstration of problem:
Python 2.1 (#1, Apr 18 2001, 10:49:25)
[GCC 2.95.2 19991024 (release)] on sunos5
Type "copyright", "credits" or "license" for more
information.
>>> import distutils
>>> import distutils.version
>>> v = distutils.version.StrictVersion
(distutils.__version__)
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/local/lib/python2.1/distutils/version.py",
line 42, in __init__
self.parse(vstring)
File "/usr/local/lib/python2.1/distutils/version.py",
line 109, in parse
raise ValueError, "invalid version number '%s'" %
vstring
ValueError: invalid version number '1.0.2pre'
>>>
----------------------------------------------------------------------
Comment By: Thomas Heller (theller)
Date: 2001-09-28 03:56
Message:
Logged In: YES
user_id=11105
Seems better to close this bug, since it is fixed. Iff a
python version 2.1.2 is released, someone will have to
remember this one...
----------------------------------------------------------------------
Comment By: Thomas Heller (theller)
Date: 2001-09-05 12:00
Message:
Logged In: YES
user_id=11105
I didn't close it because it should have been fixed in
Python 2.1.1, just in case there will be a 2.1.2 release,
where it should be fixed.
Shall I close it?
----------------------------------------------------------------------
Comment By: Guido van Rossum (gvanrossum)
Date: 2001-09-05 11:14
Message:
Logged In: YES
user_id=6380
Why is this not closed?
----------------------------------------------------------------------
Comment By: Garth T Kidd (gtk)
Date: 2001-07-29 23:15
Message:
Logged In: YES
user_id=59803
Fixed in distutils 1.20 tagged for release with Python 2.2,
meaning 4Suite et al won't install cleanly with any out-of-
the-box Python 2.1. :/
If there's ever a 2.1.2, anyone want to tag this for it?
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=417796&group_id=5470