Skip to content
Snippets Groups Projects
Commit 9f7c7b47 authored by Oriol Tintó's avatar Oriol Tintó
Browse files

Fix bug in build_icon.sh when setting up the eccodes env file.

Removing debug spack spec.
parent a41ea29a
No related branches found
No related tags found
No related merge requests found
Pipeline #19185 passed
......@@ -39,7 +39,7 @@ if [ ! -z "$SPACK_BUILD_ICON" ]; then
else
spack repo add ${WORKDIR}/production_project/spack_repo
fi
spack spec $SPACK_BUILD_ICON
spack install --reuse $SPACK_BUILD_ICON
#TODO: had some problems with spack load when more than one version is available, adding --first to overcome that
# although in principle we should not install the model if its already installed.
......@@ -71,6 +71,6 @@ if [ ! -f "${definitions_tar_file}" ]; then
echo "export ECCODES_DEFINITION_PATH=${WORKDIR}/definitions.edzw-${eccodes_version}-1" >eccodes_defs.env
ECCODES_PATH=$( spack find -p eccodes%${COMPILER} | grep -i $USER | cut -d" " -f 3 )
echo "export LD_LIBRARY_PATH=${ECCODES_PATH}/lib:\${LD_LIBRARY_PATH}" >> eccodes_defs.env
echo "export LD_LIBRARY_PATH=${ECCODES_PATH}/lib:\${LD_LIBRARY_PATH:-}" >> eccodes_defs.env
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment