-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Only import setuptools_scm when we are in a matplotlib git repo #23144
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
Conversation
A better(?) approach may be the one at https://stackoverflow.com/a/66869528/378080 (in combination with still checking if '.git' exists): add a Or, now that I think of it, a |
3b0ea0f
to
2c02929
Compare
Closes matplotlib#23114, where somebody has installed matplotlib into another git repo.
Thanks, a dedicated file |
2c02929
to
db0b2c9
Compare
This is prob fine but is there no other way to get our dev version info than setuptools? |
Um, yes you only have to call |
Should you add this file as |
Maybe. I have not used archives. From what I've understood this is only relevant for |
For example, Fedora builds from |
TL;DR The PR is good as is. This is only the explanation why. Thinking about it, we should not exclude |
I am happy with the PR as it is (and would not bother with removing .matplotlib-repo from archives, as that's one less config item and leaving it in seems harmless), but would rather let @QuLogic do the second approval as he's the most likely to be impacted. |
…in a matplotlib git repo
…144-on-v3.5.x Backport PR #23144 on branch v3.5.x (Only import setuptools_scm when we are in a matplotlib git repo)
Closes #23114, where somebody has installed matplotlib into another
git repo.
Just checking that two levels up is a .git is not enough. We have to make sure this is the matplotlib git repo. I've now added a check that the
__init__.py
is in the folderlib/matplotlib
. Is there maybe even a better check that this is the matplotlib git repo?