Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 24 lines (19 sloc) 586 Bytes
#!/usr/bin/env bash
# install pip if it doesn't exist yet
which pip > /dev/null 2>&1
if [ $? -ne 0 ]; then
sudo apt-get install -q -y python-pip
fi
# install python development headers
dpkg --get-selections | grep python-dev > /dev/null 2>&1
if [ $? -ne 0 ]; then
sudo apt-get update
sudo apt-get install -q -y python-dev
fi
# install ffi for bcrypt
dpkg --get-selections | grep libffi-dev > /dev/null 2>&1
if [ $? -ne 0 ]; then
sudo apt-get install -q -y libffi-dev
fi
# install requirements from pip requirements file
sudo pip install -r /vagrant/requirements.txt