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

Load bzip2 in a different place.

parent 49293c08
No related branches found
No related tags found
1 merge request!4Switching to the advanced configuration method and fixing spack build.
......@@ -16,6 +16,10 @@ cd ${WORKDIR} || exit
. ${WORKDIR}/proj/platforms/common/spack_utils.sh
load_spack "%spack.init%" "%spack.root%" "%spack.url%" "%spack.branch%" "%spack.compiler%" "%spack.disable_local_config%" "%spack.user_cache_path%" "%spack.user_config_path%"
if [ ! $(rpm -qa | grep bzip2) ]; then
spack install bzip2
spack load --first bzip2
fi
SPACK_BUILD_ICON="%spack.build_cmd%"
......@@ -28,6 +32,7 @@ if [ ! -z "$SPACK_BUILD_ICON" ]; then
else
spack repo add ${WORKDIR}/proj/spack_repo
fi
spack install $SPACK_BUILD_ICON
spack load $SPACK_BUILD_ICON
else
......@@ -42,11 +47,6 @@ if [ ! -f "${definitions_tar_file}" ]; then
defs_url=https://opendata.dwd.de/weather/lib/grib/${definitions_tar_file}
wget "${defs_url}"
if [ ! $(rpm -qa | grep bzip2) ]; then
spack install bzip2
spack load --first bzip2
fi
# Decompress definitions file
tar -xf "${definitions_tar_file}"
# Create a file containing the environment variable that needs to be set in order to use DWD's definitions:
......
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