mirror of
https://github.com/docker/compose.git
synced 2025-06-19 13:10:21 +02:00
23 lines
353 B
Bash
Executable File
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
|
|
|