this_version.py: fix release mode
authorPaul Brossier <piem@piem.org>
Thu, 23 Mar 2017 17:56:26 +0000 (18:56 +0100)
committerPaul Brossier <piem@piem.org>
Thu, 23 Mar 2017 17:56:26 +0000 (18:56 +0100)
this_version.py

index 59bc65b..69d2f56 100644 (file)
@@ -60,7 +60,9 @@ def get_aubio_pyversion():
         pep440str = aubio_version.replace('+', '.')
         verstr = pep440str.replace('~git.', 'a0+')
     elif '~alpha' in aubio_version:
-        verstr = "a0"
+        verstr = aubio_version.replace('~alpha', 'a0')
+    else:
+        verstr = aubio_version
     return verstr
 
 def get_git_revision_hash(short=True):