From 0bc2f2ad9c42cd78c2d652f7b346382fe456aeaf Mon Sep 17 00:00:00 2001 From: Daniel Weindl Date: Tue, 12 Dec 2023 20:55:24 +0100 Subject: [PATCH] buildAmici.sh: Only try installing numpy if not yet available (#2230) Makes buildAmici.sh work with system-python. Before, it would fail if we don't have write permissions to system-packages even if numpy was already installed. --- scripts/buildAmici.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/buildAmici.sh b/scripts/buildAmici.sh index a8ddc7c27d..507a391621 100755 --- a/scripts/buildAmici.sh +++ b/scripts/buildAmici.sh @@ -25,7 +25,7 @@ else fi # required for build swig interface -python3 -m pip install numpy +pip show numpy > /dev/null || python3 -m pip install numpy ${cmake} \ -Wdev -DAMICI_CXX_OPTIONS="-Wall;-Wextra${extra_cxx_flags}" \