Created
February 22, 2014 22:40
-
-
Save dlitz/9163489 to your computer and use it in GitHub Desktop.
Fix Python < 2.7 looking for 'plat-linux3' instead of 'plat-linux2'
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sys.platform should return "linux2" even if the system was compiled on Linux 3.x or later. | |
diff -ru Python-2.2.3.orig/configure Python-2.2.3/configure | |
--- Python-2.2.3.orig/configure 2003-03-29 14:25:14.000000000 -0800 | |
+++ Python-2.2.3/configure 2014-02-22 14:37:36.540457776 -0800 | |
@@ -641,6 +641,8 @@ | |
MACHDEP="$ac_md_system$ac_md_release" | |
case $MACHDEP in | |
+ linux1) MACHDEP="linux1";; | |
+ linux*) MACHDEP="linux2";; | |
cygwin*) MACHDEP="cygwin";; | |
darwin*) MACHDEP="darwin";; | |
'') MACHDEP="unknown";; | |
diff -ru Python-2.2.3.orig/configure.in Python-2.2.3/configure.in | |
--- Python-2.2.3.orig/configure.in 2003-03-29 14:25:17.000000000 -0800 | |
+++ Python-2.2.3/configure.in 2014-02-22 14:37:29.668562217 -0800 | |
@@ -68,6 +68,8 @@ | |
MACHDEP="$ac_md_system$ac_md_release" | |
case $MACHDEP in | |
+ linux1) MACHDEP="linux1";; | |
+ linux*) MACHDEP="linux2";; | |
cygwin*) MACHDEP="cygwin";; | |
darwin*) MACHDEP="darwin";; | |
'') MACHDEP="unknown";; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment