From 4aa34ba6d898ba63d7ce1bdf4f9cf191cf9f9c77 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sun, 27 Oct 2013 11:43:21 +0100 Subject: [PATCH] Fix detection of Limnoria version from Git when running the setup with Python 3. --- setup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 690d62c94..1a5b3ec41 100644 --- a/setup.py +++ b/setup.py @@ -47,7 +47,10 @@ version = None try: proc = subprocess.Popen('git show HEAD --format=%ci', shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE) - version = proc.stdout.readline() \ + version = proc.stdout.readline() + if sys.version_info[0] >= 3: + version = version.decode() + version = version \ .strip() \ .split(' +')[0] \ .replace(' ', 'T') \