start.sh: if debian is detected install necessary packages to build Python extensions

This commit is contained in:
Benjamin Dauvergne 2014-01-21 22:48:18 +01:00
parent 4c62f0f309
commit c31c4d15d5
1 changed files with 6 additions and 0 deletions

View File

@ -2,6 +2,12 @@ PROJECT=portail-citoyen
CTL=${PROJECT}
VENV=${PROJECT}-venv
if [ -f /etc/debian_release ]; then
if ! dpkg -l build-essential python-dev >/dev/null 2>&1; then
aptitude install python-dev build-essential
fi
fi
if [ "$VIRTUAL_ENV" = "" ]; then
if which mkvirtualenv >/dev/null 2>&1; then
workon $PROJECT || (mkvirtualenv $PROJECT; workon $PROJECT)