Use local version identifer for SHA

local version identifier seems to be the only PEP440
way to add arbitrary string to the version. Makes
pip stop complaining about invalid version label.
This commit is contained in:
khazhyk 2017-10-14 20:40:58 -07:00
parent 47a58d354d
commit 98a054e19e

View File

@ -32,7 +32,7 @@ if version.endswith(('a', 'b', 'rc')):
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
out, err = p.communicate()
if out:
version += '-' + out.decode('utf-8').strip()
version += '+' + out.decode('utf-8').strip()
except Exception:
pass