mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-01 01:09:22 +01:00
setup: reword fallback version format & warnings
Also, change the suffix from -dirty to -nogit.
This commit is contained in:
parent
0db1947263
commit
a4e1f2a4ab
5
setup.py
5
setup.py
@ -19,8 +19,9 @@ with open('VERSION', encoding='utf-8') as f:
|
||||
try:
|
||||
real_version = subprocess.check_output(['git', 'describe', '--tags']).decode('utf-8').strip()
|
||||
except Exception as e:
|
||||
print('ERROR: Failed to get Git version from "git describe --tags": %s: %s' % (type(e).__name__, e))
|
||||
real_version = version + '-dirty'
|
||||
print('WARNING: Failed to get Git version from "git describe --tags": %s: %s' % (type(e).__name__, e))
|
||||
print("If you're installing from PyPI or a tarball, ignore the above message.")
|
||||
real_version = version + '-nogit'
|
||||
|
||||
# Write the version to disk.
|
||||
with open('__init__.py', 'w') as f:
|
||||
|
Loading…
Reference in New Issue
Block a user