setup.py: do not refuser to run when workdir is dirty

This commit is contained in:
Benjamin Dauvergne 2013-11-29 16:29:16 +01:00
parent 434e8288bc
commit 8e2f186fac
1 changed files with 0 additions and 1 deletions

View File

@ -96,7 +96,6 @@ def get_version():
result = p.communicate()[0]
assert p.returncode == 0, 'git returned non-zero'
new_version = result.split()[0][1:]
assert not new_version.endswith('-dirty'), 'git workdir is not clean'
assert new_version.split('-')[0] == version, '__version__ must match the last git annotated tag'
version = new_version.replace('-', '.')
return version