TamasBakai | d38feb6 | 2019-02-28 09:06:19 +0000 | [diff] [blame] | 1 | #!/bin/bash |
2 | |||||
3 | virtualenv --version > /dev/null || { echo 'Virtualenv command is not available, exiting' ; sleep 10; exit 1; } | ||||
4 | pip3 --version > /dev/null || { echo 'python3-pip package is not available, exiting' ; sleep 10; exit 1; } | ||||
5 | |||||
6 | |||||
7 | if [ -d ".env" ]; then | ||||
8 | echo ".env is prepared" | ||||
9 | else | ||||
10 | virtualenv --no-site-packages --distribute -p python3 .env | ||||
11 | fi | ||||
12 | |||||
13 | source .env/bin/activate && pip3 install -r requirements.txt |