Everytime the package is installed, the script runs to determine the current version using git, if git is installed.
This has been causing problems in the conda-forge feedstock of this repo as it's not actually cloning the source code, but rather working off of the pypi distribution of this repo, hence overwriting it with a non-PEP440-compliant version and causing problems for consumers.
After this PR
==COMMIT_MSG==
Do not overwrite the _version.py file if it already exists
==COMMIT_MSG==
Before this PR
Everytime the package is installed, the script runs to determine the current version using git, if git is installed.
This has been causing problems in the conda-forge feedstock of this repo as it's not actually cloning the source code, but rather working off of the pypi distribution of this repo, hence overwriting it with a non-PEP440-compliant version and causing problems for consumers.
After this PR
==COMMIT_MSG== Do not overwrite the _version.py file if it already exists ==COMMIT_MSG==
Possible downsides?