start.sh: if debian is detected install necessary packages to build Python extensions
This commit is contained in:
parent
4c62f0f309
commit
c31c4d15d5
6
start.sh
6
start.sh
|
@ -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)
|
||||
|
|
Reference in New Issue