Skip to content
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

Warn when the pkg_resource metadata backend is used with Python 3.11, 3.12, 3.13 #13318

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sbidoul
Copy link
Member

@sbidoul sbidoul commented Apr 5, 2025

Towards #13317

We warn when the undocumented _PIP_USE_IMPORTLIB_METADATA is set to false, causing the use of the pkg_resources metadata backend on Python 3.11, 3.12, 3.13.

@sbidoul sbidoul added the type: deprecation Related to deprecation / removal. label Apr 5, 2025
@sbidoul sbidoul added this to the 25.1 milestone Apr 5, 2025
if hasattr(importlib.metadata, "_PIP_USE_IMPORTLIB_METADATA"):
# The Python distributor has set the global constant, so we don't
# warn, since it is not a user decision.
return
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not entirely sure we should not warn the user here.

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

Successfully merging this pull request may close these issues.

1 participant