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

perf: use package metadata before scm #3363

Closed
wants to merge 2 commits into from

Conversation

akrherz
Copy link
Contributor

@akrherz akrherz commented Jan 17, 2024

Description Of Changes

This PR attempts to only import setuptools_scm when MetPy is being used from a not-installed location. I don't seem clever enough to figure out proper mocks/patches to have this fully tested. ie, mocking os.path.dirname is tricky. I dunno, as my issue stated, burn this with fire if you wish. No hard feelings.

Checklist

@akrherz akrherz requested a review from a team as a code owner January 17, 2024 21:16
@akrherz akrherz requested review from dopplershift and removed request for a team January 17, 2024 21:16
@akrherz akrherz marked this pull request as draft January 18, 2024 00:46
@akrherz
Copy link
Contributor Author

akrherz commented Jan 20, 2024

#3364 is much better than this.

@akrherz akrherz closed this Jan 20, 2024
@akrherz akrherz deleted the gh3362_setuptools_scm branch January 20, 2024 19:46
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.

Avoid setuptools_scm import at runtime for deployed package
1 participant