Skip to content

Commit d5fd438

Browse files
authored
bpo-40280: Get help() working and more (GH-30858)
1 parent 80e1def commit d5fd438

File tree

3 files changed

+20
-13
lines changed

3 files changed

+20
-13
lines changed

Tools/wasm/wasm_assets.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,11 @@
7171
"smtplib.py",
7272
"socketserver.py",
7373
"telnetlib.py",
74-
"urllib/",
74+
# keep urllib.parse for pydoc
75+
"urllib/error.py",
76+
"urllib/request.py",
77+
"urllib/response.py",
78+
"urllib/robotparser.py",
7579
"wsgiref/",
7680
"xmlrpc/",
7781
# dbm / gdbm

configure

+9-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure.ac

+6-5
Original file line numberDiff line numberDiff line change
@@ -1850,7 +1850,7 @@ AS_CASE([$ac_sys_system/$ac_sys_emscripten_target],
18501850
LDFLAGS_NODIST="$LDFLAGS_NODIST -s ASSERTIONS=1 -s ALLOW_MEMORY_GROWTH=1 -s NODERAWFS=1 -s EXIT_RUNTIME=1 -s USE_PTHREADS -s PROXY_TO_PTHREAD"
18511851
CFLAGS_NODIST="$CFLAGS_NODIST -pthread"
18521852
],
1853-
[WASI], [
1853+
[WASI/*], [
18541854
AC_DEFINE([_WASI_EMULATED_SIGNAL], [1], [Define to 1 if you want to emulate signals on WASI])
18551855
LIBS="$LIBS -lwasi-emulated-signal"
18561856
echo "#define _WASI_EMULATED_SIGNAL 1" >> confdefs.h
@@ -6407,6 +6407,7 @@ dnl Use Modules/Setup.stdlib as additional provider?
64076407
AC_MSG_CHECKING([for additional Modules/Setup files])
64086408
AS_CASE([$ac_sys_system],
64096409
[Emscripten], [MODULES_SETUP_STDLIB=Modules/Setup.stdlib],
6410+
[WASI], [MODULES_SETUP_STDLIB=Modules/Setup.stdlib],
64106411
[MODULES_SETUP_STDLIB=]
64116412
)
64126413
AC_MSG_RESULT([$MODULES_SETUP_STDLIB])
@@ -6599,16 +6600,16 @@ dnl test modules
65996600
PY_STDLIB_MOD([_testcapi], [test "$TEST_MODULES" = yes])
66006601
PY_STDLIB_MOD([_testinternalcapi], [test "$TEST_MODULES" = yes])
66016602
PY_STDLIB_MOD([_testbuffer], [test "$TEST_MODULES" = yes])
6602-
PY_STDLIB_MOD([_testimportmultiple], [test "$TEST_MODULES" = yes])
6603-
PY_STDLIB_MOD([_testmultiphase], [test "$TEST_MODULES" = yes])
6603+
PY_STDLIB_MOD([_testimportmultiple], [test "$TEST_MODULES" = yes], [test "$ac_cv_func_dlopen" = yes])
6604+
PY_STDLIB_MOD([_testmultiphase], [test "$TEST_MODULES" = yes], [test "$ac_cv_func_dlopen" = yes])
66046605
PY_STDLIB_MOD([_xxtestfuzz], [test "$TEST_MODULES" = yes])
66056606
PY_STDLIB_MOD([_ctypes_test], [test "$TEST_MODULES" = yes], [], [], [-lm])
66066607

66076608
dnl Limited API template modules.
66086609
dnl The limited C API is not compatible with the Py_TRACE_REFS macro.
66096610
dnl Emscripten does not support shared libraries yet.
6610-
PY_STDLIB_MOD([xxlimited], [test "$with_trace_refs" = "no" -a "$ac_sys_system" != "Emscripten"])
6611-
PY_STDLIB_MOD([xxlimited_35], [test "$with_trace_refs" = "no" -a "$ac_sys_system" != "Emscripten"])
6611+
PY_STDLIB_MOD([xxlimited], [test "$with_trace_refs" = "no"], [test "$ac_cv_func_dlopen" = yes])
6612+
PY_STDLIB_MOD([xxlimited_35], [test "$with_trace_refs" = "no"], [test "$ac_cv_func_dlopen" = yes])
66126613

66136614
# substitute multiline block, must come after last PY_STDLIB_MOD()
66146615
AC_SUBST([MODULE_BLOCK])

0 commit comments

Comments
 (0)