start.sh: fix pyOpenSSL install, add libffi-dev to needed Debian packages

This commit is contained in:
Benjamin Dauvergne 2014-05-26 22:54:45 +02:00
parent 8b4e06eabf
commit a0598983b2
1 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@ 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
aptitude install python-dev build-essential libffi-dev
fi
fi
@ -20,11 +20,11 @@ if [ "$VIRTUAL_ENV" = "" ]; then
fi
pip install --upgrade setuptools
pip install --upgrade pip
pip install --upgrade pyOpenSSL==0.13 ndg-httpsclient requests pyasn1
pip install --upgrade pyOpenSSL ndg-httpsclient requests pyasn1
sed -i 's/^MAX = 64/MAX = 200/' $VENV/lib/python*/site-packages/ndg/httpsclient/subj_alt_name.py
pip install --upgrade --process-dependency-links -r requirements.txt
if [ ! -f $PROJECT.db ]; then
./$CTL syncdb --all --noinput
./$CTL syncdb --all
./$CTL migrate --fake
if [ -f load-base-data.sh ]; then
./load-base-data.sh