3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-24 19:52:53 +01:00

setup.py: fix fallback version import path

This commit is contained in:
James Lu 2016-07-03 00:29:31 -07:00
parent 72c48502c6
commit a9a6c22044

View File

@ -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