Skip to content

Remove support for the pkg_resources metadata backend. #13317

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
sbidoul opened this issue Apr 5, 2025 · 0 comments
Open

Remove support for the pkg_resources metadata backend. #13317

sbidoul opened this issue Apr 5, 2025 · 0 comments
Labels
type: deprecation Related to deprecation / removal.
Milestone

Comments

@sbidoul
Copy link
Member

sbidoul commented Apr 5, 2025

Using pkg_resources (part of setuptools) as library, is deprecated.

On Python 3.11+, pip does not use it by default, although it can still be enabled using an undocumented environment variable or a global flag to be set by redistributors. On Python 3.14+, pip does not support it.

We plan to remove support for using pkg_resources to detect installed distribution when pip stops supporting Python 3.10, not earlier than 26.3 (October 2026).

If you reach this issue from the deprecation warning, it is likely that the undocumented environment variable is set. To silence the warning, please unset it, or contact your systems administrator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: deprecation Related to deprecation / removal.
Projects
None yet
Development

No branches or pull requests

1 participant