mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
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.
This commit is contained in:
parent
a123245986
commit
97ab8fc16a
1 changed files with 0 additions and 9 deletions
|
@ -91,13 +91,6 @@ OMIT_MODULE_FILES = {
|
|||
"_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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue