Only import setuptools_scm when we are in a matplotlib git repo - #23144
Conversation
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 |
…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__.pyis in the folderlib/matplotlib. Is there maybe even a better check that this is the matplotlib git repo?