Skip to content

Commit

Permalink
Merge pull request #512 from bedroge/remove_lmod_cache_update_code
Browse files Browse the repository at this point in the history
Don't update Lmod cache in software installation script
  • Loading branch information
trz42 committed Mar 26, 2024
2 parents f349fde + 36da7b8 commit 2803c63
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions EESSI-install-software.sh
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ fi

### add packages here

echo ">> Creating/updating Lmod cache..."
echo ">> Creating/updating Lmod RC file..."
export LMOD_CONFIG_DIR="${EASYBUILD_INSTALLPATH}/.lmod"
lmod_rc_file="$LMOD_CONFIG_DIR/lmodrc.lua"
lmodrc_changed=$(cat ${pr_diff} | grep '^+++' | cut -f2 -d' ' | sed 's@^[a-z]/@@g' | grep '^create_lmodrc.py$' > /dev/null; echo $?)
Expand All @@ -266,7 +266,5 @@ if [ ! -f "$lmod_sitepackage_file" ] || [ "${sitepackage_changed}" == '0' ]; the
check_exit_code $? "$lmod_sitepackage_file created" "Failed to create $lmod_sitepackage_file"
fi

$TOPDIR/update_lmod_cache.sh ${EPREFIX} ${EASYBUILD_INSTALLPATH}

echo ">> Cleaning up ${TMPDIR}..."
rm -r ${TMPDIR}

0 comments on commit 2803c63

Please sign in to comment.