File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -502,6 +502,13 @@ def _linux_platforms(is_32bit: bool = _32_BIT_INTERPRETER) -> Iterator[str]:
502502 yield f"linux_{ arch } "
503503
504504
505+ def _emscripten_platforms () -> Iterator [str ]:
506+ pyodide_abi_version = sysconfig .get_config_var ("PYODIDE_ABI_VERSION" )
507+ if pyodide_abi_version :
508+ yield f"pyodide_{ pyodide_abi_version } _wasm32"
509+ yield from _generic_platforms ()
510+
511+
505512def _generic_platforms () -> Iterator [str ]:
506513 yield _normalize_string (sysconfig .get_platform ())
507514
@@ -514,6 +521,8 @@ def platform_tags() -> Iterator[str]:
514521 return mac_platforms ()
515522 elif platform .system () == "Linux" :
516523 return _linux_platforms ()
524+ elif platform .system () == "Emscripten" :
525+ return _emscripten_platforms ()
517526 else :
518527 return _generic_platforms ()
519528
You can’t perform that action at this time.
0 commit comments