Skip to content

pip's vendored pkg_resources should stop using pkgutil.ImpImporter #11501

Closed
@warsaw

Description

@warsaw

Description

pkgutil.ImpImporter has been deprecated since Python 3.3. It is slated to be removed in Python 3.12 but until pip no longer uses it, we probably can't remove this long deprecated class.

Expected behavior

No response

pip version

22.2.2

Python version

3.12

OS

macOS

How to Reproduce

  1. Grab the CPython branch: gh pr checkout 98059
  2. configure && make test
  3. test_venv fails because pip uses this API
  4. See https://github.com/python/cpython/actions/runs/3215689824/jobs/5256965254

Output

No response

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions