use major.minor.patch.postXX.dev version scheme for nightly python releases

This commit is contained in:
Matthias Hochsteger 2022-04-01 12:07:12 +02:00
parent 4cc758632d
commit 1ac5415e94

View File

@ -29,7 +29,10 @@ git_version = check_output(['git', 'describe', '--tags']).decode('utf-8').strip(
version = git_version[1:].split('-')
if len(version)>2:
version = version[:2]
version = '.dev'.join(version)
if len(version)>1:
version = '.post'.join(version) + '.dev'
else:
version = version[0]
py_install_dir = get_python_lib(1,0,'').replace('\\','/')