-
Notifications
You must be signed in to change notification settings - Fork 2
/
install_setup.sh
executable file
·36 lines (31 loc) · 997 Bytes
/
install_setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash -ex
# Change to script folder.
cd "$( dirname "${BASH_SOURCE[0]}" )"
# System libraries
if [ "$(uname)" == "Darwin" ]; then
# Mac OS X specific things here
# If homebrew is not installed, install it by following the
# instructions on https://brew.sh/
if ! which gfortran; then
echo Install gfortran
brew install gcc
fi
if ! which mpirun; then
echo Install Open-MPI
brew install open-mpi
fi
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
# Only for Debian, Ubuntu, and related Linux distributions
sudo apt-get update -qq -y
sudo apt-get install -qq -y --no-install-recommends $(cat requirements-ubuntu.txt)
else
echo "Operating system not supported, yet"
exit 1
fi
rm -rf ~/envED
python3 -m venv ~/envED
# Activate virtual environment.
. ~/envED/bin/activate
# Install required python libraries.
pip install --disable-pip-version-check -q -U uv==0.2.15
uv pip install -q -r requirements.in