Skip to content

Commit

Permalink
handle edge cases where version cannot be determined
Browse files Browse the repository at this point in the history
since this happens when someone does "pip install ." instead of "pip install -e ." (ie the editable version)

pypa/setuptools-scm#357
  • Loading branch information
aryarm authored Nov 1, 2023
1 parent 2a5ada0 commit ab75594
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion trtools/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
from .version import __version__
try:
from .version import __version__
except ModuleNotFoundError:
__version__ == "unknown"

0 comments on commit ab75594

Please sign in to comment.