[Python-checkins] cpython (3.2): keep distutils version in sync with python version automatically

benjamin.peterson python-checkins at python.org
Tue May 26 04:28:57 CEST 2015


https://hg.python.org/cpython/rev/0cb037bb0f9a
changeset:   96289:0cb037bb0f9a
branch:      3.2
parent:      96230:710cdba13323
user:        Benjamin Peterson <benjamin at python.org>
date:        Mon May 25 21:24:00 2015 -0500
summary:
  keep distutils version in sync with python version automatically

files:
  Lib/distutils/__init__.py |  10 +++-------
  1 files changed, 3 insertions(+), 7 deletions(-)


diff --git a/Lib/distutils/__init__.py b/Lib/distutils/__init__.py
--- a/Lib/distutils/__init__.py
+++ b/Lib/distutils/__init__.py
@@ -8,10 +8,6 @@
    setup (...)
 """
 
-# Distutils version
-#
-# Updated automatically by the Python release process.
-#
-#--start constants--
-__version__ = "3.2.6"
-#--end constants--
+import sys
+
+__version__ = sys.version[:sys.version.index(' ')]

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list