Script to prepare OSX build environment

Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
This commit is contained in:
Aanand Prasad 2015-05-27 15:13:12 +01:00
commit 686c25d50f
3 changed files with 31 additions and 5 deletions

View file

@ -1,7 +1,7 @@
#!/bin/bash
set -ex
rm -rf venv
virtualenv venv
virtualenv -p /usr/local/bin/python venv
venv/bin/pip install -r requirements.txt
venv/bin/pip install -r requirements-dev.txt
venv/bin/pip install .

22
script/prepare-osx Executable file
View file

@ -0,0 +1,22 @@
#!/bin/bash
set -ex
if !(which brew); then
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
brew update
if [ ! -f /usr/local/bin/python ]; then
brew install python
fi
if [ -n "$(brew outdated | grep python)" ]; then
brew upgrade python
fi
if !(which virtualenv); then
pip install virtualenv
fi