[Python-checkins] bpo-40280: Emscripten defaults to --with-ensurepip=no (GH-29873)

tiran webhook-mailer at python.org
Wed Dec 1 14:43:34 EST 2021


https://github.com/python/cpython/commit/9deb83468c56c7484645e6e3a6d0183cd6a0afd7
commit: 9deb83468c56c7484645e6e3a6d0183cd6a0afd7
branch: main
author: Christian Heimes <christian at python.org>
committer: tiran <christian at python.org>
date: 2021-12-01T20:43:07+01:00
summary:

bpo-40280: Emscripten defaults to --with-ensurepip=no (GH-29873)

files:
M configure
M configure.ac

diff --git a/configure b/configure
index 382e030974727..4dfd4a565d14e 100755
--- a/configure
+++ b/configure
@@ -20268,7 +20268,15 @@ $as_echo_n "checking for ensurepip... " >&6; }
 if test "${with_ensurepip+set}" = set; then :
   withval=$with_ensurepip;
 else
-  with_ensurepip=upgrade
+
+      case $ac_sys_system in #(
+  Emscripten) :
+    $with_ensurepip=no ;; #(
+  *) :
+    with_ensurepip=upgrade
+       ;;
+esac
+
 fi
 
 case $with_ensurepip in #(
diff --git a/configure.ac b/configure.ac
index 1e5fef337ca5d..38f943fa9d77c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -5871,7 +5871,12 @@ AC_ARG_WITH(ensurepip,
     [AS_HELP_STRING([--with-ensurepip@<:@=install|upgrade|no@:>@],
         ["install" or "upgrade" using bundled pip (default is upgrade)])],
     [],
-    [with_ensurepip=upgrade])
+    [
+      AS_CASE([$ac_sys_system],
+        [Emscripten], [$with_ensurepip=no],
+        [with_ensurepip=upgrade]
+      )
+    ])
 AS_CASE($with_ensurepip,
     [yes|upgrade],[ENSUREPIP=upgrade],
     [install],[ENSUREPIP=install],



More information about the Python-checkins mailing list