Skip to content

Prevent pkg_resource access on Python 3.12+#11661

Closed
uranusjr wants to merge 2 commits intopypa:mainfrom
uranusjr:no-pkg-resources-3.12
Closed

Prevent pkg_resource access on Python 3.12+#11661
uranusjr wants to merge 2 commits intopypa:mainfrom
uranusjr:no-pkg-resources-3.12

Conversation

@uranusjr
Copy link
Copy Markdown
Member

Time is up. If a downstream Python distributor hasn't implemented importlib.metadata support by now, they must expect things to break.

Close #11501.

Time is up. If a downstream Python distributor hasn't implemented
importlib.metadata support by now, they must expect things to break.
@uranusjr uranusjr force-pushed the no-pkg-resources-3.12 branch 2 times, most recently from 5805d83 to 0ee7f85 Compare January 3, 2023 00:06
This customization is generally provided by the distributor, and the
user can do nothing if the environment is configured incorrectly. So
instead of breaking pip entirely, we silently ignore the customization
and let the distributor correct the situation.
@uranusjr
Copy link
Copy Markdown
Member Author

Don’t need this anymore since setuptools fixed this.

@uranusjr uranusjr closed this Jul 18, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pip's vendored pkg_resources should stop using pkgutil.ImpImporter

5 participants