Remove stderr output for 'git describe' call

This commit is contained in:
Sylvain Tricot 2023-06-02 11:33:22 +02:00
parent d61408e594
commit 893d012c99
1 changed files with 3 additions and 1 deletions

View File

@ -35,8 +35,10 @@ PKGNAME = 'msspec'
try:
cmd = ["git describe|sed 's/-\([0-9]\+\)-.*/.dev\\1/g'"]
result = subprocess.run(cmd, stdout=subprocess.PIPE, shell=True)
result = subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.DEVNULL, shell=True)
__version__ = result.stdout.decode('utf-8').strip()
if __version__ == "":
raise
except Exception as err:
try:
thisfile_path = os.path.abspath(__file__)