From bdd046f047fbf008f046d96eb899afc4a547df8a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Oriol=20Tint=C3=B3?= <oriol.tinto@lmu.de>
Date: Mon, 13 Mar 2023 13:03:26 +0100
Subject: [PATCH] Bugfix in build_enstools.sh. Adding installation of a
 specific version of numpy.

---
 templates/build_enstools.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/templates/build_enstools.sh b/templates/build_enstools.sh
index f0aa88d..b7a86d1 100644
--- a/templates/build_enstools.sh
+++ b/templates/build_enstools.sh
@@ -31,7 +31,7 @@ if [ $(
 ) -ne 0 ]; then
   echo "Installing a version of python3"
   # Compile openmpi with schedulers=slurm
-  spack install python3@3.8:
+  spack install python@3.8:
 else
   echo "py-enstools-compression already installed!"
 fi
@@ -50,4 +50,6 @@ source venv/bin/activate
 ln -sf $(which python3) ${WORKDIR}/python3
 
 # Install enstools-compression via pip
+# TODO: Due to a incompatibility issue between latest numba and numpy I have to add this here. Hopefully removable soon.
+pip install numpy==1.23
 pip install enstools-compression
-- 
GitLab