init.sh 291 Bytes
Newer Older
Rob Carleski's avatar
Rob Carleski committed
1
#!/bin/bash
Paul Arthur's avatar
Paul Arthur committed
2
3
4
5
6
7
8
9
10
11
12

cd $(readlink -fn $(dirname "$BASH_SOURCE"))

if which virtualenv; then
    [[ -d venv/bin ]] || virtualenv -p python3 venv
    . venv/bin/activate
    pip install -U pip
    pip install -U -r requirements.txt
else
    echo "Automated environment setup requires virtualenv."
fi