Skip to content

special casing importlib.machinery breaks PyPy #487

Closed
@ghost

Description

Originally reported by: s3anj (Bitbucket: s3anj, GitHub: Unknown)


In pkg_resources/init.py the import of importlib only succeeds on cpython breaking pip on PyPy.

# Avoid try/except due to potential problems with delayed import mechanisms.
if sys.version_info >= (3, 3) and sys.implementation.name == "cpython":
    import importlib.machinery as importlib_machinery
else:
    importlib_machinery = None

PyPy3 has a working importlib.machinery package


Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions