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,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
try:
|
||||||
|
p.check_returncode()
|
||||||
|
except subprocess.CalledProcessError:
|
||||||
|
print(f"Error building {self.name}. Printing build logs.")
|
||||||
|
|
||||||
with open(self.pkgdir / "build.log", "r") as f:
|
with open(self.pkgdir / "build.log", "r") as f:
|
||||||
shutil.copyfileobj(f, sys.stdout)
|
shutil.copyfileobj(f, sys.stdout)
|
||||||
|
|
||||||
p.check_returncode()
|
raise
|
||||||
|
|
||||||
if not self.library:
|
if not self.library:
|
||||||
shutil.copyfile(
|
shutil.copyfile(
|
||||||
|
|
Loading…
Reference in New Issue