mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-28 13:42:37 +01:00
setup: reword fallback version format & warnings
Also, change the suffix from -dirty to -nogit.
(cherry picked from commit a4e1f2a4ab
)
This commit is contained in:
parent
8bffffa000
commit
9e6e30324f
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