diff --git a/setup.py b/setup.py index 077f84e0b6a0bc34c96eacbda311516c10e966da..fb36f5b66b979d2cf4efbb2e999f53ce140df37c 100644 --- a/setup.py +++ b/setup.py @@ -81,7 +81,8 @@ else: if (('develop' in git_branch) or ('feature' in git_branch) or ('bugfix' in git_branch)): - VERSION = subprocess.check_output(['git', 'describe', '--tags']).strip().decode() + VERSION = subprocess.check_output( + ['git', 'describe', '--tags', '--dirty']).strip().decode().replace('-g', '+g').replace('-dirty', '.dirty').replace('-', '.post') else: VERSION = subprocess.check_output(['git', 'describe', '--tags']).strip().decode().split('-')[0] print('This is bfps version ' + VERSION)