Skip to content

Commit

Permalink
buildAmici.sh: Only try installing numpy if not yet available (#2230)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dweindl authored Dec 12, 2023
1 parent 1dad722 commit 0bc2f2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/buildAmici.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}" \
Expand Down

0 comments on commit 0bc2f2a

Please sign in to comment.