diff options
author | Christian Heimes <christian@python.org> | 2022-08-30 04:36:11 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-30 04:36:11 (GMT) |
commit | d0b3d235dbc560ada459e386b6fa5b5ce1952c7e (patch) | |
tree | f6972b38ca1598487bb0c48403d803ec057ca418 /Tools/wasm | |
parent | 6d403e264a7dcd1544a91708f139c6dd8612204d (diff) | |
download | cpython-d0b3d235dbc560ada459e386b6fa5b5ce1952c7e.zip cpython-d0b3d235dbc560ada459e386b6fa5b5ce1952c7e.tar.gz cpython-d0b3d235dbc560ada459e386b6fa5b5ce1952c7e.tar.bz2 |
gh-96320: WASI socket fixes (#96388)
* gh-96320: WASI socket fixes
- ignore missing functions in ``socket.__repr__``
- bundle network files with assets
* blurb
Diffstat (limited to 'Tools/wasm')
-rwxr-xr-x | Tools/wasm/wasm_assets.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Tools/wasm/wasm_assets.py b/Tools/wasm/wasm_assets.py index a300d59..a35acfd 100755 --- a/Tools/wasm/wasm_assets.py +++ b/Tools/wasm/wasm_assets.py @@ -230,7 +230,8 @@ def main(): extmods = detect_extension_modules(args) omit_files = list(OMIT_FILES) - omit_files.extend(OMIT_NETWORKING_FILES) + if sysconfig.get_platform().startswith("emscripten"): + omit_files.extend(OMIT_NETWORKING_FILES) for modname, modfiles in OMIT_MODULE_FILES.items(): if not extmods.get(modname): omit_files.extend(modfiles) |