From 11127def6115d4f98a20e934d503d92c6f0632ae Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Tue, 23 Jan 2018 18:42:28 +0100 Subject: [PATCH 1/3] bpo-32637: Set sys.platform to "android" on Android --- .../NEWS.d/next/Library/2018-01-23-18-43-08.bpo-32637.ntAPTa.rst | 1 + configure.ac | 1 + 2 files changed, 2 insertions(+) create mode 100644 Misc/NEWS.d/next/Library/2018-01-23-18-43-08.bpo-32637.ntAPTa.rst diff --git a/Misc/NEWS.d/next/Library/2018-01-23-18-43-08.bpo-32637.ntAPTa.rst b/Misc/NEWS.d/next/Library/2018-01-23-18-43-08.bpo-32637.ntAPTa.rst new file mode 100644 index 000000000000000..e1a346b875851b5 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2018-01-23-18-43-08.bpo-32637.ntAPTa.rst @@ -0,0 +1 @@ +Set sys.platform to "android" on Android. diff --git a/configure.ac b/configure.ac index 15ef872a53af458..2841ceec62dcf65 100644 --- a/configure.ac +++ b/configure.ac @@ -401,6 +401,7 @@ then MACHDEP="$ac_md_system$ac_md_release" case $MACHDEP in + linux-android) MACHDEP="android";; linux*) MACHDEP="linux";; cygwin*) MACHDEP="cygwin";; darwin*) MACHDEP="darwin";; From 928c2d85a987c69bfce86d4c826cf048ec9c9da8 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Tue, 23 Jan 2018 22:11:48 +0100 Subject: [PATCH 2/3] Run autoconf to update configure --- configure | 1 + 1 file changed, 1 insertion(+) diff --git a/configure b/configure index 5904b54c3eda80a..c84ba5faef5eed9 100755 --- a/configure +++ b/configure @@ -3272,6 +3272,7 @@ then MACHDEP="$ac_md_system$ac_md_release" case $MACHDEP in + linux-android) MACHDEP="android";; linux*) MACHDEP="linux";; cygwin*) MACHDEP="cygwin";; darwin*) MACHDEP="darwin";; From f9e5b22a05215c0f01b97d98464bd51fbd03c3e7 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Wed, 24 Jan 2018 00:24:24 +0100 Subject: [PATCH 3/3] Fix case match: add "*" --- configure | 2 +- configure.ac | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index c84ba5faef5eed9..b17448516100c65 100755 --- a/configure +++ b/configure @@ -3272,7 +3272,7 @@ then MACHDEP="$ac_md_system$ac_md_release" case $MACHDEP in - linux-android) MACHDEP="android";; + linux-android*) MACHDEP="android";; linux*) MACHDEP="linux";; cygwin*) MACHDEP="cygwin";; darwin*) MACHDEP="darwin";; diff --git a/configure.ac b/configure.ac index 2841ceec62dcf65..7603a3982064140 100644 --- a/configure.ac +++ b/configure.ac @@ -401,7 +401,7 @@ then MACHDEP="$ac_md_system$ac_md_release" case $MACHDEP in - linux-android) MACHDEP="android";; + linux-android*) MACHDEP="android";; linux*) MACHDEP="linux";; cygwin*) MACHDEP="cygwin";; darwin*) MACHDEP="darwin";;