[Python-bugs-list] [ python-Bugs-550364 ] Version number handling
noreply@sourceforge.net
noreply@sourceforge.net
Thu, 25 Jul 2002 09:12:11 -0700
Bugs item #550364, was opened at 2002-04-29 20:28
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=550364&group_id=5470
Category: Distutils
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: A.M. Kuchling (akuchling)
>Assigned to: A.M. Kuchling (akuchling)
Summary: Version number handling
Initial Comment:
A while ago, Tim Peters mentioned in a check-in message:
"Change the version string from "2.2+" to "2.3a0". distutils
peels off
the first 3 characters of this string in several places, so for as
long
as they remain "2.2" it confuses the heck out of attempts to
build 2.3 stuff using distutils."
It's true; distutils does sys.version[:3] in a few places.
The attached patch factors this out so it'll be easier to
change.
(There's also a Python development issue here, namely when
the version number gets bumped in the CVS tree.)
----------------------------------------------------------------------
>Comment By: Jeremy Hylton (jhylton)
Date: 2002-07-25 16:12
Message:
Logged In: YES
user_id=31392
Do we still care about this patch?
----------------------------------------------------------------------
Comment By: A.M. Kuchling (akuchling)
Date: 2002-05-15 20:54
Message:
Logged In: YES
user_id=11375
Maybe. But I don't know if I still care about 1.5.2. If
I don't, then the code can just always use sys.version_info.
----------------------------------------------------------------------
Comment By: Raymond Hettinger (rhettinger)
Date: 2002-05-14 10:51
Message:
Logged In: YES
user_id=80475
Nice factoring.
Would it be more bulletproof to use sys.version_info
instead of sys.version[:3]? Perhaps, wrap it in try/except
to catch versions before Py2.0.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=550364&group_id=5470