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,
|
||||
)
|
||||
|
||||
with open(self.pkgdir / "build.log", "r") as f:
|
||||
shutil.copyfileobj(f, sys.stdout)
|
||||
try:
|
||||
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:
|
||||
shutil.copyfile(
|
||||
|
|
Loading…
Reference in New Issue