summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-09-13 10:05:25 (GMT)
committerGitHub <noreply@github.com>2022-09-13 10:05:25 (GMT)
commit390123b412346eb4438665f068bb73226ac84e7c (patch)
tree3b423e21403114ffaf09af4c447f282ea15ecb70 /Tools
parent14adf4667e401a6257fe71c595a9a5c7c1f84c67 (diff)
downloadcpython-390123b412346eb4438665f068bb73226ac84e7c.zip
cpython-390123b412346eb4438665f068bb73226ac84e7c.tar.gz
cpython-390123b412346eb4438665f068bb73226ac84e7c.tar.bz2
[3.11] gh-96320: WASI socket fixes (GH-96388) (GH-#96748)
- ignore missing functions in ``socket.__repr__`` - bundle network files with assets
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/wasm/wasm_assets.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Tools/wasm/wasm_assets.py b/Tools/wasm/wasm_assets.py
index 40acea2..34a9bb5 100755
--- a/Tools/wasm/wasm_assets.py
+++ b/Tools/wasm/wasm_assets.py
@@ -229,7 +229,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)