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

Delay import of pkg_resources until needed (if ever). #195

Merged
merged 1 commit into from
Jan 27, 2020

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented Jan 27, 2020

pkg_resources can be very slow to import (e.g. pypa/setuptools#926).
See rationale re: importance of import time in #194.

Alternatively, one could use importlib.resources on Py3.7+, but
then one needs to add version-conditional code for Py3.6 (or a
version-conditional dependency on importlib_resources).

pkg_resources can be very slow to import.

Alternatively, one could use importlib.resources on Py3.7+, but
then one needs to add version-conditional code for Py3.6 (or a
version-conditional dependency on importlib_resources).
@dhermes
Copy link
Owner

dhermes commented Jan 27, 2020

LGTM. Looks like I've gotta update the coveralls job to only work on master

@dhermes dhermes merged commit f9fb7be into dhermes:master Jan 27, 2020
@anntzer anntzer deleted the delay-pkg_resources branch January 27, 2020 16:22
@dhermes dhermes self-assigned this Jan 27, 2020
dhermes added a commit that referenced this pull request Jan 28, 2020
Follows along approach from previous commit and earlier work
in #194, #195. This supercedes #196.

This also fixes a "SympPy" -> "SymPy" typo from the previous commit.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants