Closed erikbosch closed 1 month ago
@UlfBj - you could try this change in your local env.
One could think of more advanced approaches, like first checking if we find a git tag in current location, and as second option use installed version, but that makes it difficult if we first need to heck if git is installed and so on.
Merging this one as I intend to include it in VSS 4.2
It was detected by @UlfBj that our new automatic version printout gives error if not having installed vss-tools. This fixes that by printing
local
instead of giving an exceptionOne can argue that the "importlib" solution we have can give misleading info if you are working on vss-tools source but have vss-tools installed with pip (
pip install vss-tools
). if you work with local source of vss-tools you could dopip install -e .
to get a pip install that corresponds to your source code.