setup.py: Fix 0fb2ee1bf7 for Git version.

This commit is contained in:
Valentin Lorentz 2013-09-11 19:27:10 +02:00
parent dfafee3ff2
commit 0a439012c1

View File

@ -49,8 +49,9 @@ try:
stdout=subprocess.PIPE, stderr=subprocess.PIPE) stdout=subprocess.PIPE, stderr=subprocess.PIPE)
version = proc.stdout.readline() \ version = proc.stdout.readline() \
.strip() \ .strip() \
.replace(' +', '+') \ .split(' +')[0] \
.replace(' ', 'T') .replace(' ', 'T') \
.replace(':', '-')
except: except:
pass pass
if not version: if not version: