aboutsummaryrefslogtreecommitdiffstats
path: root/test/mocks/datafilecollector-testharness/mr-sim/setup.sh
blob: e6f50b25fea2a6de17a1f32e2186e7466d5c7a34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

virtualenv --version > /dev/null || { echo 'Virtualenv command is not available, exiting' ; sleep 10; exit 1; }
pip3 --version > /dev/null || { echo 'python3-pip package is not available, exiting' ; sleep 10; exit 1; }


if [ -d ".env" ]; then
	echo ".env is prepared"
else
	virtualenv -p python3 .env
fi

source .env/bin/activate && pip3 install --no-cache-dir -r requirements.txt