Keep using python2 by default on Vagrant install for now

This commit is contained in:
Basile Clement 2016-07-15 00:24:40 +02:00
parent 210c6d7712
commit 4d27d85384

View file

@ -8,7 +8,7 @@ DBNAME="cof_gestion"
DBPASSWD="4KZt3nGPLVeWSvtBZPSM3fSzXpzEU4"
# Installation de paquets utiles
apt-get update && apt-get install -y mercurial python3-pip python3-dev libmysqlclient-dev
apt-get update && apt-get install -y mercurial python-pip python-dev libmysqlclient-dev
# Configuration et installation de mysql. Le mot de passe root est le même que
# le mot de passe pour l'utilisateur local - pour rappel, ceci est une instance
@ -42,7 +42,7 @@ chown vagrant: ~vagrant/.bash_profile
cd /vagrant
# Installation des dépendances python
sudo -H -u vagrant pip3 install --user -r requirements.txt -r requirements-devel.txt
sudo -H -u vagrant pip install --user -r requirements.txt -r requirements-devel.txt
# Préparation de Django
sudo -H -u vagrant DJANGO_SETTINGS_MODULE='cof.settings_dev' DBUSER=$DBUSER DBNAME=$DBNAME DBPASSWD=$DBPASSWD python3 manage.py migrate
sudo -H -u vagrant DJANGO_SETTINGS_MODULE='cof.settings_dev' DBUSER=$DBUSER DBNAME=$DBNAME DBPASSWD=$DBPASSWD python manage.py migrate