From 0a439012c1a6539ce0166c28d69e529ac70b145c Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Wed, 11 Sep 2013 19:27:10 +0200 Subject: [PATCH] setup.py: Fix 0fb2ee1bf74 for Git version. --- setup.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 9f7d04c26..690d62c94 100644 --- a/setup.py +++ b/setup.py @@ -49,8 +49,9 @@ try: stdout=subprocess.PIPE, stderr=subprocess.PIPE) version = proc.stdout.readline() \ .strip() \ - .replace(' +', '+') \ - .replace(' ', 'T') + .split(' +')[0] \ + .replace(' ', 'T') \ + .replace(':', '-') except: pass if not version: