mirror of https://github.com/docker/compose.git
23 lines
353 B
Plaintext
23 lines
353 B
Plaintext
|
#!/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
|
||
|
|