From 3803186e3312eea56e7abcc9339c6ccaa33d8ff3 Mon Sep 17 00:00:00 2001 From: Emmanuel Cazenave Date: Wed, 5 Feb 2020 15:47:19 +0100 Subject: [PATCH] cast version to string (#39569) --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index bf179d0..45ec698 100644 --- a/setup.py +++ b/setup.py @@ -35,7 +35,7 @@ def get_version(): p = subprocess.Popen(['git', 'describe', '--dirty', '--match=v*'], stdout=subprocess.PIPE) result = p.communicate()[0] if p.returncode == 0: - version = result.split()[0][1:] + version = str(result.split()[0][1:]) version = version.replace('-', '.') return version return '0'