2019-01-03 16:31:54 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
set -x
|
|
|
|
|
2019-02-14 11:17:50 +01:00
|
|
|
sudo apt-get install python3-pip virtualenv screen whois unzip libffi-dev gcc -y
|
2019-01-18 12:02:20 +01:00
|
|
|
|
|
|
|
if [ -z "$VIRTUAL_ENV" ]; then
|
|
|
|
virtualenv -p python3 D4ENV
|
|
|
|
echo export D4_HOME=$(pwd) >> ./D4ENV/bin/activate
|
|
|
|
. ./D4ENV/bin/activate
|
|
|
|
fi
|
|
|
|
python3 -m pip install -r requirement.txt
|
|
|
|
|
|
|
|
pushd web/
|
|
|
|
./update_web.sh
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
2019-01-03 16:31:54 +01:00
|
|
|
python3 -m pip install -r requirement.txt
|
|
|
|
|
|
|
|
# REDIS #
|
|
|
|
test ! -d redis/ && git clone https://github.com/antirez/redis.git
|
|
|
|
pushd redis/
|
|
|
|
git checkout 5.0
|
|
|
|
make
|
|
|
|
popd
|