[Python-checkins] cpython (3.2): Issue #12326: sys.platform is now always 'linux2' on Linux

georg.brandl python-checkins at python.org
Sun Sep 4 08:42:17 CEST 2011


http://hg.python.org/cpython/rev/265da863d017
changeset:   72232:265da863d017
branch:      3.2
user:        Victor Stinner <victor.stinner at haypocalc.com>
date:        Sat Aug 20 14:01:05 2011 +0200
summary:
  Issue #12326: sys.platform is now always 'linux2' on Linux

Even if Python is compiled on Linux 3.

files:
  Misc/NEWS    |  4 ++++
  configure    |  1 +
  configure.in |  1 +
  3 files changed, 6 insertions(+), 0 deletions(-)


diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -10,6 +10,10 @@
 Core and Builtins
 -----------------
 
+- Issue #12326: sys.platform is now always 'linux2' on Linux, even if Python
+  is compiled on Linux 3.
+
+
 Library
 -------
 
diff --git a/configure b/configure
--- a/configure
+++ b/configure
@@ -2997,6 +2997,7 @@
 	MACHDEP="$ac_md_system$ac_md_release"
 
 	case $MACHDEP in
+	linux*) MACHDEP="linux2";;
 	cygwin*) MACHDEP="cygwin";;
 	darwin*) MACHDEP="darwin";;
         irix646) MACHDEP="irix6";;
diff --git a/configure.in b/configure.in
--- a/configure.in
+++ b/configure.in
@@ -290,6 +290,7 @@
 	MACHDEP="$ac_md_system$ac_md_release"
 
 	case $MACHDEP in
+	linux*) MACHDEP="linux2";;
 	cygwin*) MACHDEP="cygwin";;
 	darwin*) MACHDEP="darwin";;
         irix646) MACHDEP="irix6";;

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


More information about the Python-checkins mailing list