[Python-checkins] r50978 - in python/trunk: Lib/distutils/__init__.py Misc/NEWS

martin.v.loewis python-checkins at python.org
Sun Jul 30 15:14:05 CEST 2006


Author: martin.v.loewis
Date: Sun Jul 30 15:14:05 2006
New Revision: 50978

Modified:
   python/trunk/Lib/distutils/__init__.py
   python/trunk/Misc/NEWS
Log:
Base __version__ on sys.version_info, as distutils is
no longer maintained separatedly.


Modified: python/trunk/Lib/distutils/__init__.py
==============================================================================
--- python/trunk/Lib/distutils/__init__.py	(original)
+++ python/trunk/Lib/distutils/__init__.py	Sun Jul 30 15:14:05 2006
@@ -12,4 +12,6 @@
 
 __revision__ = "$Id$"
 
-__version__ = "2.5.0"
+import sys
+__version__ = "%d.%d.%d" % sys.version_info[:3]
+del sys

Modified: python/trunk/Misc/NEWS
==============================================================================
--- python/trunk/Misc/NEWS	(original)
+++ python/trunk/Misc/NEWS	Sun Jul 30 15:14:05 2006
@@ -80,7 +80,8 @@
   side effects from one test to the next affect outcomes.  ``DocTestFinder``
   has been changed to sort the list of tests it returns.
 
-- The distutils version has been changed to 2.5.0.
+- The distutils version has been changed to 2.5.0, and are now kept
+  in sync with sys.version_info[:3].
 
 - Bug #978833: Really close underlying socket in _socketobject.close.
 


More information about the Python-checkins mailing list