From 4a689ad64864fb9829c89f7c18dccf2433f2ab54 Mon Sep 17 00:00:00 2001 From: ZyX Date: Sat, 25 Oct 2014 13:06:46 +0400 Subject: [PATCH] Strip trailing newline returned by rev-parse --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 59332f90..933cbfde 100755 --- a/setup.py +++ b/setup.py @@ -55,7 +55,7 @@ else: def get_version(): try: - return 'dev-' + subprocess.check_output(['git', 'rev-parse', 'HEAD']) + return 'dev-' + subprocess.check_output(['git', 'rev-parse', 'HEAD']).strip() except Exception as e: return 'dev'