Skip to content

Commit

Permalink
Convert Tarball easyblock to run_shell_cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
bartoldeman committed Dec 12, 2023
1 parent 53ef067 commit 3b31e92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions easybuild/easyblocks/generic/tarball.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
from easybuild.framework.easyconfig import CUSTOM
from easybuild.tools.build_log import EasyBuildError
from easybuild.tools.filetools import copy_dir, extract_file, remove_dir
from easybuild.tools.run import run_cmd
from easybuild.tools.run import run_shell_cmd


class Tarball(ExtensionEasyBlock):
Expand Down Expand Up @@ -94,7 +94,7 @@ def install_step(self, src=None):
preinstall_cmd = '&& '.join([cmd for cmd in [preinstall_cmd, self.cfg['preinstall_cmd']] if cmd])
if preinstall_cmd:
self.log.info("Preparing installation of %s using command '%s'..." % (self.name, preinstall_cmd))
run_cmd(preinstall_cmd, log_all=True, simple=True)
run_shell_cmd(preinstall_cmd)

# Copy source directory
source_path = src or self.cfg['start_dir']
Expand Down

0 comments on commit 3b31e92

Please sign in to comment.