Skip to content

Commit 4f8cc1a

Browse files
committed
bpo-40280: Emscripten defaults to --with-ensurepip=no
Reduces installation size of browser bundle Signed-off-by: Christian Heimes <[email protected]>
1 parent 0aa0bd0 commit 4f8cc1a

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

configure

+9-1
Original file line numberDiff line numberDiff line change
@@ -20268,7 +20268,15 @@ $as_echo_n "checking for ensurepip... " >&6; }
2026820268
if test "${with_ensurepip+set}" = set; then :
2026920269
withval=$with_ensurepip;
2027020270
else
20271-
with_ensurepip=upgrade
20271+
20272+
case $ac_sys_system in #(
20273+
Emscripten) :
20274+
$with_ensurepip=no ;; #(
20275+
*) :
20276+
with_ensurepip=upgrade
20277+
;;
20278+
esac
20279+
2027220280
fi
2027320281

2027420282
case $with_ensurepip in #(

configure.ac

+6-1
Original file line numberDiff line numberDiff line change
@@ -5871,7 +5871,12 @@ AC_ARG_WITH(ensurepip,
58715871
[AS_HELP_STRING([--with-ensurepip@<:@=install|upgrade|no@:>@],
58725872
["install" or "upgrade" using bundled pip (default is upgrade)])],
58735873
[],
5874-
[with_ensurepip=upgrade])
5874+
[
5875+
AS_CASE([$ac_sys_system],
5876+
[Emscripten], [$with_ensurepip=no],
5877+
[with_ensurepip=upgrade]
5878+
)
5879+
])
58755880
AS_CASE($with_ensurepip,
58765881
[yes|upgrade],[ENSUREPIP=upgrade],
58775882
[install],[ENSUREPIP=install],

0 commit comments

Comments
 (0)