Skip to content

Emscripten build fails to import importlib.metadata #138515

@ryanking13

Description

@ryanking13

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.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions