setup.py: fix version bug
This commit is contained in:
parent
9563dfff47
commit
b32b01d272
1 changed files with 1 additions and 1 deletions
2
setup.py
2
setup.py
|
@ -18,7 +18,7 @@ cnorxz_version = subprocess.run([path_to_cnorxz+"/bin/cnorxz-config",'--version'
|
||||||
assert len(git_tags) != 0, "no version tags found"
|
assert len(git_tags) != 0, "no version tags found"
|
||||||
git_tag = git_tags[-1]
|
git_tag = git_tags[-1]
|
||||||
version = git_tag[1:] + 'dev'
|
version = git_tag[1:] + 'dev'
|
||||||
git_hash_tag = subprocess.run(['git','rev-parse',git_tag],stdout=subprocess.PIPE).stdout.decode('ascii')[:-1]
|
git_hash_tag = subprocess.run(['git','rev-list','-n','1',git_tag],stdout=subprocess.PIPE).stdout.decode('ascii')[:-1]
|
||||||
if git_hash_tag == git_hash and expected_cnorxz_version != cnorxz_version:
|
if git_hash_tag == git_hash and expected_cnorxz_version != cnorxz_version:
|
||||||
version = git_tag[1:]
|
version = git_tag[1:]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue