setup: fix commit 5198d99b.
authorwhitequark <cz@m-labs.hk>
Wed, 16 Oct 2019 14:24:13 +0000 (14:24 +0000)
committerwhitequark <cz@m-labs.hk>
Wed, 16 Oct 2019 14:57:40 +0000 (14:57 +0000)
setup.py

index f769b2722ef44da54a3f7bd1ddecd995fc8e7946..e904911a380ee379d5d3240ff27aa5997cfecc69 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -3,7 +3,7 @@ from setuptools import setup, find_packages
 
 def scm_version():
     def local_scheme(version):
-        if version.tag:
+        if version.tag and not version.distance:
             return version.format_with("")
         else:
             return version.format_choice("+{node}", "+{node}.dirty")