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

DOC Mention slow import times for pkg_resources #519

Merged
merged 1 commit into from
Mar 4, 2021

Conversation

rth
Copy link
Contributor

@rth rth commented Feb 1, 2021

For retrieving the package version at runtime, the readme makes it sound as though importlib_metadata and pkg_resources are equivalent. Setuptools is almost always installed, so it's not that different from being in stdlib.

pkg_resources is however fairly slow to import pypa/setuptools#926 and should not be recommended for this use case. This adds a note about pkg_resources import times.

@RonnyPfannschmidt RonnyPfannschmidt merged commit 6082d47 into pypa:master Mar 4, 2021
@RonnyPfannschmidt
Copy link
Contributor

merging as the errors are from the new setup-tools that breaks easy_install off

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants