mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-24 03:29:28 +01:00
setup.py: fix fallback version import path
This commit is contained in:
parent
72c48502c6
commit
a9a6c22044
2
setup.py
2
setup.py
@ -10,7 +10,7 @@ try:
|
||||
version = subprocess.check_output(['git', 'describe', '--tags']).decode('utf-8').strip()
|
||||
except Exception as e:
|
||||
print('ERROR: Failed to get version from "git describe --tags": %s: %s' % (type(e).__name__, e))
|
||||
from . import __version__ as fallback_version
|
||||
from __init__ import __version__ as fallback_version
|
||||
print('Using fallback version of %r.' % fallback_version)
|
||||
version = fallback_version
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user