From e22bc6c17cdb86313dab7b23a9d3490d1c4dc8fe Mon Sep 17 00:00:00 2001 From: Goran Jelic-Cizmek Date: Tue, 23 Jul 2024 15:45:06 +0200 Subject: [PATCH] Install NumPy<2 after everything else, unconditionally --- scripts/buildNeuron.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/buildNeuron.sh b/scripts/buildNeuron.sh index c3b72f2..9b5ee2c 100755 --- a/scripts/buildNeuron.sh +++ b/scripts/buildNeuron.sh @@ -32,10 +32,12 @@ else pip install --upgrade plotly "ipywidgets>=7.0.0" fi if [[ -f external/nmodl/requirements.txt ]]; then - pip install --upgrade -r external/nmodl/requirements.txt 'numpy<2' + pip install --upgrade -r external/nmodl/requirements.txt fi # Needed for installation of older NEURON versions with Python 12 pip install --upgrade setuptools +# NumPy 2 support is currently not there yet +pip install 'numpy<2' # Set default compilers, but don't override preset values export CC=${CC:-gcc}