[Python-checkins] cpython (2.7): Issue #12326: sys.platform is now always 'linux2' on Linux
victor.stinner
python-checkins at python.org
Sat Aug 20 14:02:54 CEST 2011
http://hg.python.org/cpython/rev/c816479f6aaf
changeset: 71979:c816479f6aaf
branch: 2.7
parent: 71974:3e093590ac57
user: Victor Stinner <victor.stinner at haypocalc.com>
date: Sat Aug 20 14:02:38 2011 +0200
summary:
Issue #12326: sys.platform is now always 'linux2' on Linux
Even if Python is compiled on Linux 3.
files:
Misc/NEWS | 3 +++
configure | 1 +
configure.in | 1 +
3 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -40,6 +40,9 @@
Library
-------
+- Issue #12326: sys.platform is now always 'linux2' on Linux, even if Python
+ is compiled on Linux 3.
+
- Issue #9173: Let shutil._make_archive work if the logger argument is None.
- Issue #12650: Fix a race condition where a subprocess.Popen could leak
diff --git a/configure b/configure
--- a/configure
+++ b/configure
@@ -2995,6 +2995,7 @@
MACHDEP="$ac_md_system$ac_md_release"
case $MACHDEP in
+ linux*) MACHDEP="linux2";;
cygwin*) MACHDEP="cygwin";;
darwin*) MACHDEP="darwin";;
atheos*) MACHDEP="atheos";;
diff --git a/configure.in b/configure.in
--- a/configure.in
+++ b/configure.in
@@ -293,6 +293,7 @@
MACHDEP="$ac_md_system$ac_md_release"
case $MACHDEP in
+ linux*) MACHDEP="linux2";;
cygwin*) MACHDEP="cygwin";;
darwin*) MACHDEP="darwin";;
atheos*) MACHDEP="atheos";;
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list