bpo-40280: Disable unusable core extension modules on emscripten (GH-29834)
![](https://secure.gravatar.com/avatar/cc7737cd64a84f1b5c61a160798e97ee.jpg?s=120&d=mm&r=g)
https://github.com/python/cpython/commit/b3f443a35e08a473d52868621e9b2682591... commit: b3f443a35e08a473d52868621e9b268259139cb2 branch: main author: Erlend Egeberg Aasland <erlend.aasland@innova.no> committer: tiran <christian@python.org> date: 2021-11-29T12:39:14+01:00 summary: bpo-40280: Disable unusable core extension modules on emscripten (GH-29834) Co-authored-by: Christian Heimes <christian@python.org> files: A Misc/NEWS.d/next/Build/2021-11-29-11-24-45.bpo-40280.Knx7d7.rst M configure M configure.ac 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 0000000000000..28bcb4423ceb2 --- /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 32aed7e49f2c0..0f96171264940 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 ec71470a74e02..21429470ebacb 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"] )
participants (1)
-
tiran