Script to prepare OSX build environment
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
This commit is contained in:
parent
ef6555f084
commit
686c25d50f
3 changed files with 31 additions and 5 deletions
|
|
@ -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
22
script/prepare-osx
Executable 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
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue