setup.py: Remove error output if not in a git repo.

This commit is contained in:
Valentin Lorentz 2013-05-10 17:55:31 +02:00
parent 115f8001fe
commit 1a6d4b64d2

View File

@ -46,7 +46,7 @@ if path:
version = None
try:
proc = subprocess.Popen('git show HEAD --format=%ci', shell=True,
stdout=subprocess.PIPE)
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
version = proc.stdout.readline() \
.strip() \
.replace(' +', '+') \