Commit 25f1b320 authored by Lukas Platz's avatar Lukas Platz
Browse files

make 'ift.version.gitversion' work in the absense of git tags

parent a3b2f458
...@@ -21,7 +21,7 @@ from setuptools import find_packages, setup ...@@ -21,7 +21,7 @@ from setuptools import find_packages, setup
def write_version(): def write_version():
import subprocess import subprocess
p = subprocess.Popen(["git", "describe", "--dirty", "--tags"], p = subprocess.Popen(["git", "describe", "--dirty", "--tags", "--always"],
stdout=subprocess.PIPE) stdout=subprocess.PIPE)
res = p.communicate()[0].strip().decode('utf-8') res = p.communicate()[0].strip().decode('utf-8')
with open("nifty5/", "w") as file: with open("nifty5/", "w") as file:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment