mirror of https://github.com/pyodide/pyodide.git
BLD Make package build output less verbose (#947)
This commit is contained in:
parent
e205121806
commit
57fea1bf74
|
@ -72,10 +72,15 @@ class Package:
|
||||||
stderr=subprocess.STDOUT,
|
stderr=subprocess.STDOUT,
|
||||||
)
|
)
|
||||||
|
|
||||||
with open(self.pkgdir / "build.log", "r") as f:
|
try:
|
||||||
shutil.copyfileobj(f, sys.stdout)
|
p.check_returncode()
|
||||||
|
except subprocess.CalledProcessError:
|
||||||
|
print(f"Error building {self.name}. Printing build logs.")
|
||||||
|
|
||||||
p.check_returncode()
|
with open(self.pkgdir / "build.log", "r") as f:
|
||||||
|
shutil.copyfileobj(f, sys.stdout)
|
||||||
|
|
||||||
|
raise
|
||||||
|
|
||||||
if not self.library:
|
if not self.library:
|
||||||
shutil.copyfile(
|
shutil.copyfile(
|
||||||
|
|
Loading…
Reference in New Issue