prepare-osx 353 B

12345678910111213141516171819202122
  1. #!/bin/bash
  2. set -ex
  3. if !(which brew); then
  4. ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  5. fi
  6. brew update
  7. if [ ! -f /usr/local/bin/python ]; then
  8. brew install python
  9. fi
  10. if [ -n "$(brew outdated | grep python)" ]; then
  11. brew upgrade python
  12. fi
  13. if !(which virtualenv); then
  14. pip install virtualenv
  15. fi