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 c84d3d6b75
commit 0608676d0a

View File

@ -45,7 +45,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(' +', '+') \