Skip to content

Commit

Permalink
Merge branch 'CEMeNT-PSAAP:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
spasmann authored Mar 21, 2024
2 parents 95f20f1 + b911d67 commit 77fd2a0
Showing 1 changed file with 22 additions and 13 deletions.
35 changes: 22 additions & 13 deletions install.sh
Original file line number Diff line number Diff line change
@@ -1,21 +1,18 @@
#!/bin/bash


# Install MC/DC module
pip install -e .


# Install MC/DC dependencies, reply "y" to conda prompt
conda install numpy numba matplotlib scipy h5py pytest colorama <<< "y"

# Installing visualization dependencies (required via pip for osx-arm64)
pip install ngsolve distinctipy

bash patch_numba.sh
# Check python version
if ! { python3 -c 'import sys; assert sys.version_info < (3,12)' > /dev/null 2>&1 && python3 -c 'import sys; assert sys.version_info >= (3,9)' > /dev/null 2>&1; }; then
v=$(python3 --version)
p=$(which python)
echo "ERROR: Python version must be < 3.12 and >= 3.9."
echo " Found $v at $p."
echo "ERROR: Installation failed."
exit 1
fi

# Install or build mpi4py
if [ $# -eq 0 ]; then
conda mpi4py <<< "y"
conda install mpi4py <<< "y"
fi
while [ $# -gt 0 ]; do
case $1 in
Expand Down Expand Up @@ -44,3 +41,15 @@ while [ $# -gt 0 ]; do
shift
done

# Install MC/DC module
pip install -e .


# Install MC/DC dependencies, reply "y" to conda prompt
conda install numpy numba matplotlib scipy h5py pytest colorama <<< "y"

# Installing visualization dependencies (required via pip for osx-arm64)
pip install ngsolve distinctipy

bash patch_numba.sh

0 comments on commit 77fd2a0

Please sign in to comment.