Skip to content

Commit

Permalink
replace run_cmd with run_shell_cmd in custom easyblock for SLEPc …
Browse files Browse the repository at this point in the history
…(`slepc.py`)
  • Loading branch information
branfosj committed Feb 3, 2024
1 parent dcd646c commit 0c8ff28
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions easybuild/easyblocks/s/slepc.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
from easybuild.framework.easyconfig import BUILD, CUSTOM
from easybuild.tools.build_log import EasyBuildError
from easybuild.tools.modules import get_software_root
from easybuild.tools.run import run_cmd
from easybuild.tools.run import run_shell_cmd


class EB_SLEPc(ConfigureMake):
Expand Down Expand Up @@ -85,7 +85,7 @@ def configure_step(self):
if self.cfg['sourceinstall']:
# run configure without --prefix (required)
cmd = "%s ./configure %s" % (self.cfg['preconfigopts'], self.cfg['configopts'])
(out, _) = run_cmd(cmd, log_all=True, simple=False)
res = run_shell_cmd(cmd)
else:
# regular './configure --prefix=X' for non-source install

Expand All @@ -96,7 +96,7 @@ def configure_step(self):

# check for errors in configure
error_regexp = re.compile("ERROR")
if error_regexp.search(out):
if error_regexp.search(res.output):
raise EasyBuildError("Error(s) detected in configure output!")

# define $PETSC_ARCH
Expand Down

0 comments on commit 0c8ff28

Please sign in to comment.