forked from mai00fti/uap
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbootstrap.sh
More file actions
executable file
·20 lines (15 loc) · 793 Bytes
/
bootstrap.sh
File metadata and controls
executable file
·20 lines (15 loc) · 793 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env bash
# This script creates a virtual Python environment in ./python-env with all required libraries set up.
# To use it, call Python at ./python-env/bin/python.
# Test if everything is available
virtualenv --version >/dev/null 2>&1 || missing=$missing"[bootstrap.sh] Python virtualenv is required but it's not installed.\n"
gcc --version >/dev/null 2>&1 || missing=$missing"[bootstrap.sh] GCC is required but it's not installed.\n"
git --version >/dev/null 2>&1 || missing=$missing"[bootstrap.sh] GIT is required but it's not installed.\n"
# Report errors if any
if [[ -n "$missing" ]]; then
echo -e ${missing%\\n}
echo "[bootstrap.sh] Please install missing programs."
exit 1
fi
virtualenv python_env
./python_env/bin/pip install pyyaml numpy biopython psutil