Skip to content

Commit

Permalink
replace run_cmd with run_shell_cmd in custom easyblock for pplace…
Browse files Browse the repository at this point in the history
…r (`pplacer.py`)
  • Loading branch information
bartoldeman committed Feb 8, 2024
1 parent 08e7e7c commit 31d9e4b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions easybuild/easyblocks/p/pplacer.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
import easybuild.tools.environment as env
from easybuild.tools.build_log import EasyBuildError
from easybuild.tools.filetools import write_file
from easybuild.tools.run import run_cmd
from easybuild.tools.run import run_shell_cmd

from easybuild.easyblocks.generic.configuremake import ConfigureMake
from easybuild.easyblocks.ocaml import mk_opam_init_cmd
Expand All @@ -58,14 +58,14 @@ def configure_step(self):
env.setvar('OPAMROOT', self.installdir)

opam_init_cmd = mk_opam_init_cmd()
run_cmd(opam_init_cmd)
run_shell_cmd(opam_init_cmd)

run_cmd("opam repo add pplacer-deps %s/pplacer-opam-repository*/" % self.builddir)
run_cmd("opam update pplacer-deps")
run_shell_cmd("opam repo add pplacer-deps %s/pplacer-opam-repository*/" % self.builddir)
run_shell_cmd("opam update pplacer-deps")

env.setvar('OCAML_BACKEND', 'gcc')

run_cmd("eval `opam config env` && cat opam-requirements.txt | xargs -t opam install -y")
run_shell_cmd("eval `opam config env` && cat opam-requirements.txt | xargs -t opam install -y")

txt = "let version = \"v%s\"\n" % self.version
write_file(os.path.join(self.builddir, 'pplacer-%s' % self.version, 'common_src', 'version.ml'), txt)
Expand Down

0 comments on commit 31d9e4b

Please sign in to comment.