compose/script/prepare-osx
Aanand Prasad 7d9aa8e0a9 Script to prepare OSX build environment
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-05-27 16:27:24 +01:00

23 lines
353 B
Bash
Executable File

#!/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