summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErlend Egeberg Aasland <erlend.aasland@innova.no>2021-11-29 12:39:14 +0100
committerGitHub <noreply@github.com>2021-11-29 12:39:14 +0100
commitb3f443a35e08a473d52868621e9b268259139cb2 (patch)
treedcdc213ac6d2cc182ad7eba057f65f1560e6dd20
parent4dc198dedd66e3247aa934fb91c9a158c3eea15a (diff)
downloadcpython-git-b3f443a35e08a473d52868621e9b268259139cb2.tar.gz
bpo-40280: Disable unusable core extension modules on emscripten (GH-29834)
Co-authored-by: Christian Heimes <christian@python.org>
-rw-r--r--Misc/NEWS.d/next/Build/2021-11-29-11-24-45.bpo-40280.Knx7d7.rst1
-rwxr-xr-xconfigure4
-rw-r--r--configure.ac20
3 files changed, 25 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Build/2021-11-29-11-24-45.bpo-40280.Knx7d7.rst b/Misc/NEWS.d/next/Build/2021-11-29-11-24-45.bpo-40280.Knx7d7.rst
new file mode 100644
index 0000000000..28bcb4423c
--- /dev/null
+++ b/Misc/NEWS.d/next/Build/2021-11-29-11-24-45.bpo-40280.Knx7d7.rst
@@ -0,0 +1 @@
+Disable unusable core extension modules on WASM/Emscripten targets.
diff --git a/configure b/configure
index 32aed7e49f..0f96171264 100755
--- a/configure
+++ b/configure
@@ -21047,6 +21047,10 @@ case $ac_sys_system in #(
py_stdlib_not_available="_scproxy nis" ;; #(
FreeBSD*) :
py_stdlib_not_available="_scproxy spwd" ;; #(
+ Emscripten) :
+
+ py_stdlib_not_available="_curses _curses_panel _dbm _gdbm _multiprocessing _posixshmem _posixsubprocess _scproxy _xxsubinterpreters grp nis ossaudiodev resource spwd syslog termios"
+ ;; #(
*) :
py_stdlib_not_available="_scproxy"
;;
diff --git a/configure.ac b/configure.ac
index ec71470a74..21429470eb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -6191,6 +6191,26 @@ AS_CASE([$ac_sys_system],
[CYGWIN*], [py_stdlib_not_available="_scproxy nis"],
[QNX*], [py_stdlib_not_available="_scproxy nis"],
[FreeBSD*], [py_stdlib_not_available="_scproxy spwd"],
+ [Emscripten], [
+ py_stdlib_not_available="m4_normalize([
+ _curses
+ _curses_panel
+ _dbm
+ _gdbm
+ _multiprocessing
+ _posixshmem
+ _posixsubprocess
+ _scproxy
+ _xxsubinterpreters
+ grp
+ nis
+ ossaudiodev
+ resource
+ spwd
+ syslog
+ termios
+ ])"
+ ],
[py_stdlib_not_available="_scproxy"]
)