https://github.com/python/cpython/commit/97ab8fc16a8e0b0e2e68777d0d2f035b3d75a229 commit: 97ab8fc16a8e0b0e2e68777d0d2f035b3d75a229 branch: main author: Hood Chatham <roberthoodchat...@gmail.com> committer: freakboy3742 <russ...@keith-magee.com> date: 2025-03-25T05:43:31+08:00 summary:
gh-127146: Fix Emscripten build with --pydebug (#131672) Removes an explicit check that sysconfigdata naming is correct, in favor of reporting at runtime with the default mechanisms. files: M Tools/wasm/emscripten/web_example/wasm_assets.py diff --git a/Tools/wasm/emscripten/web_example/wasm_assets.py b/Tools/wasm/emscripten/web_example/wasm_assets.py index c828f4e57850ab..deeb9229a4412b 100755 --- a/Tools/wasm/emscripten/web_example/wasm_assets.py +++ b/Tools/wasm/emscripten/web_example/wasm_assets.py @@ -91,13 +91,6 @@ "_zoneinfo": ["zoneinfo/"], } -SYSCONFIG_NAMES = ( - "_sysconfigdata__emscripten_wasm32-emscripten", - "_sysconfigdata__emscripten_wasm32-emscripten", - "_sysconfigdata__wasi_wasm32-wasi", - "_sysconfigdata__wasi_wasm64-wasi", -) - def get_builddir(args: argparse.Namespace) -> pathlib.Path: """Get builddir path from pybuilddir.txt""" @@ -110,8 +103,6 @@ def get_sysconfigdata(args: argparse.Namespace) -> pathlib.Path: """Get path to sysconfigdata relative to build root""" assert isinstance(args.builddir, pathlib.Path) data_name: str = sysconfig._get_sysconfigdata_name() # type: ignore[attr-defined] - if not data_name.startswith(SYSCONFIG_NAMES): - raise ValueError(f"Invalid sysconfig data name '{data_name}'.", SYSCONFIG_NAMES) filename = data_name + ".py" return args.builddir / filename _______________________________________________ Python-checkins mailing list -- python-checkins@python.org To unsubscribe send an email to python-checkins-le...@python.org https://mail.python.org/mailman3/lists/python-checkins.python.org/ Member address: arch...@mail-archive.com