From 4f8cc1ad7165bf5dd4a895c9239bc6d0d65b2061 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Wed, 1 Dec 2021 08:49:26 +0100 Subject: [PATCH] bpo-40280: Emscripten defaults to --with-ensurepip=no Reduces installation size of browser bundle Signed-off-by: Christian Heimes --- configure | 10 +++++++++- configure.ac | 7 ++++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 382e0309747279..4dfd4a565d14e2 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 1e5fef337ca5d1..38f943fa9d77c1 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],