]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-40280: Emscripten defaults to --with-ensurepip=no (GH-29873)
authorChristian Heimes <christian@python.org>
Wed, 1 Dec 2021 19:43:07 +0000 (21:43 +0200)
committerGitHub <noreply@github.com>
Wed, 1 Dec 2021 19:43:07 +0000 (20:43 +0100)
configure
configure.ac

index 382e03097472798148e5b68677dff7330ac572c7..4dfd4a565d14e2dd4d43f7e3043bb77415028f5e 100755 (executable)
--- 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 #(
index 1e5fef337ca5d1c3af87dfad1e163bd9af18e5d2..38f943fa9d77c17c96e1229c595c3b695f7b9f83 100644 (file)
@@ -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],