Remove stderr output for 'git describe' call
This commit is contained in:
parent
d61408e594
commit
893d012c99
|
@ -35,8 +35,10 @@ PKGNAME = 'msspec'
|
||||||
|
|
||||||
try:
|
try:
|
||||||
cmd = ["git describe|sed 's/-\([0-9]\+\)-.*/.dev\\1/g'"]
|
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()
|
__version__ = result.stdout.decode('utf-8').strip()
|
||||||
|
if __version__ == "":
|
||||||
|
raise
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
try:
|
try:
|
||||||
thisfile_path = os.path.abspath(__file__)
|
thisfile_path = os.path.abspath(__file__)
|
||||||
|
|
Loading…
Reference in New Issue