From a2d7266bc9e6763b1163493af9bdf20e5994a684 Mon Sep 17 00:00:00 2001 From: Simon Branford Date: Thu, 1 Feb 2024 10:22:26 +0000 Subject: [PATCH] replace `run_cmd` with `run_shell_cmd` in custom easyblock for Gurobi (`gurobi.py`) --- easybuild/easyblocks/g/gurobi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/easybuild/easyblocks/g/gurobi.py b/easybuild/easyblocks/g/gurobi.py index 49147d9a2f..7661eb8870 100644 --- a/easybuild/easyblocks/g/gurobi.py +++ b/easybuild/easyblocks/g/gurobi.py @@ -37,7 +37,7 @@ from easybuild.tools.build_log import EasyBuildError from easybuild.tools.filetools import copy_file 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_Gurobi(Tarball): @@ -76,7 +76,7 @@ def install_step(self): copy_file(self.orig_license_file, self.license_file) if get_software_root('Python'): - run_cmd("python setup.py install --prefix=%s" % self.installdir) + run_shell_cmd("python setup.py install --prefix=%s" % self.installdir) def sanity_check_step(self): """Custom sanity check for Gurobi."""