#! /bin/bash set -e # this script aim to initialise the environement. . $(dirname $0)/scripts.cfg # create python virtualenv if ! which virtualenv >/dev/null; then echo "Please install python-virtualenv" exit 1 fi if [ ! -d "$PYTHONENV_DIR" ]; then if ! virtualenv $PYTHONENV_DIR --system-site-packages; then virtualenv $PYTHONENV_DIR fi fi . $PYTHONENV_DIR/bin/activate pip install -r $BASE_DIR/requirements.pip