Skip to content

Commit

Permalink
Raises an error if the make fails
Browse files Browse the repository at this point in the history
  • Loading branch information
llnl-fesp committed Sep 19, 2023
1 parent e564aad commit 17fd105
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,10 @@ def run(self):
raise SystemExit("Python versions < 3 not supported")
else:
if petsc == 0:
call(['make', '-f','Makefile.Forthon'])
status = call(['make', '-f','Makefile.Forthon'])
else:
call(['make', '-f', 'Makefile.PETSc'])
status = call(['make', '-f', 'Makefile.PETSc'])
if status != 0: raise SystemExit("Build failure")
build.run(self)


Expand All @@ -89,9 +90,10 @@ def run(self):
raise SystemExit("Python versions < 3 not supported")
else:
if petsc == 0:
call(['make', '-f', 'Makefile.Forthon', 'clean'])
status = call(['make', '-f', 'Makefile.Forthon', 'clean'])
else:
call(['make', '-f', 'Makefile.PETSc', 'clean'])
status = call(['make', '-f', 'Makefile.PETSc', 'clean'])
if status != 0: raise SystemExit("Clean failure")

uedgepkgs = ['aph', 'api', 'bbb', 'com', 'flx', 'grd', 'svr', 'wdf', 'ncl']

Expand Down

0 comments on commit 17fd105

Please sign in to comment.