Remove stderr output for 'git describe' call
This commit is contained in:
parent
d61408e594
commit
893d012c99
|
@ -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__)
|
||||
|
|
Loading…
Reference in New Issue