Emscripten build fails to import importlib.metadat becuase the email module is missing.
>>> import importlib.metadata
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/workspaces/cpython/Lib/importlib/metadata/__init__.py", line 14, in <module>
ModuleNotFoundError: No module named 'email'
email module is omitted [here], marked as a networking-related package.
| OMIT_NETWORKING_FILES = ( | |
| "email/", |
But the email format is used for parsing the package metadata as well, so I think it is better to include it in emscripten builds.