From 98a054e19ecf00327acd1fa69c06823a46c502a6 Mon Sep 17 00:00:00 2001 From: khazhyk Date: Sat, 14 Oct 2017 20:40:58 -0700 Subject: [PATCH] Use local version identifer for SHA local version identifier seems to be the only PEP440 way to add arbitrary string to the version. Makes pip stop complaining about invalid version label. --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 3441ff27c..0d132b13d 100644 --- a/setup.py +++ b/setup.py @@ -32,7 +32,7 @@ if version.endswith(('a', 'b', 'rc')): stdout=subprocess.PIPE, stderr=subprocess.PIPE) out, err = p.communicate() if out: - version += '-' + out.decode('utf-8').strip() + version += '+' + out.decode('utf-8').strip() except Exception: pass