From 992a460cf6100f5b851c85190352f1d810c6d3ff Mon Sep 17 00:00:00 2001 From: mathieui Date: Wed, 21 Jan 2015 14:18:19 +0100 Subject: Ignore stderr when doing the git revision check (and use the older --git-dir instead of -C) --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index d947bc58..1b517838 100755 --- a/setup.py +++ b/setup.py @@ -29,8 +29,9 @@ git_dir = os.path.join(current_dir, '.git') if os.path.exists(git_dir): try: import subprocess - result = subprocess.Popen(['git', '-C', git_dir, 'describe'], + result = subprocess.Popen(['git', '--git-dir', git_dir, 'describe'], stdout=subprocess.PIPE) + stderr=subprocess.DEVNULL) result.wait() data = result.stdout.read().decode('utf-8', errors='ignore') version = '.dev' + data.split('-')[1] -- cgit v1.2.3