Skip to content

Commit

Permalink
version should work even if installed from master.zip
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasLecocq committed Feb 7, 2024
1 parent 86000ea commit 9c934ec
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions msnoise/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,11 @@ def get_git_version(abbrev=10, dirty=True, append_remote_tracking_branch=True):
version = release_version

if version is None:
import pkg_resources
version = pkg_resources.get_distribution("msnoise").version
try:
import pkg_resources
version = pkg_resources.get_distribution("msnoise").version
except:
pass

# If we still don't have anything, that's an error.
if version is None:
Expand Down

0 comments on commit 9c934ec

Please sign in to comment.