Skip to content

Commit

Permalink
Update load_eessi_extend_module.sh
Browse files Browse the repository at this point in the history
Co-authored-by: ocaisa <[email protected]>
  • Loading branch information
bedroge and ocaisa authored Jan 14, 2025
1 parent e85f839 commit eb3cb49
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions load_eessi_extend_module.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,19 @@ else
echo ">> Final installation in ${EASYBUILD_INSTALLPATH}..."
export PATH=${EB_TMPDIR}/bin:${PATH}
export PYTHONPATH=$(ls -d ${EB_TMPDIR}/lib/python*/site-packages):${PYTHONPATH}
eb_install_out=${TMPDIR}/eb_install.out
ok_msg="EESSI-extend/${EESSI_EXTEND_VERSION} installed, let's go!"
fail_msg="Installing EESSI-extend/${EESSI_EXTEND_VERSION} failed, that's not good... (output: ${eb_install_out})"
# EESSI-extend also needs EasyBuild to be installed as a module, so install the latest release
eb_install_out=${TMPDIR}/eb_install.out
ok_msg="Latest EasyBuild installed, let's go!"
fail_msg="Installing latest EasyBuild failed, that's not good... (output: ${eb_install_out})"
${EB} --install-latest-eb-release 2>&1 | tee ${eb_install_out}
check_exit_code $? "${ok_msg}" "${fail_msg}"
# Now install EESSI-extend
eessi_install_out=${TMPDIR}/eessi_install.out
ok_msg="EESSI-extend/${EESSI_EXTEND_VERSION} installed, let's go!"
fail_msg="Installing EESSI-extend/${EESSI_EXTEND_VERSION} failed, that's not good... (output: ${eessi_install_out})"
# while always adding --try-amend=keep... may do no harm, we could make
# an attempt to figure out if it is needed, e.g., when we are rebuilding
${EB} "EESSI-extend-easybuild.eb" --try-amend=keeppreviousinstall=True 2>&1 | tee ${eb_install_out}
${EB} "EESSI-extend-easybuild.eb" --try-amend=keeppreviousinstall=True 2>&1 | tee ${eessi_install_out}
check_exit_code $? "${ok_msg}" "${fail_msg}"
)

Expand Down

0 comments on commit eb3cb49

Please sign in to comment.