install.sh 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #!/bin/bash
  2. set -e
  3. set -x
  4. if [[ "$(uname -s)" == 'Darwin' ]]; then
  5. brew update || brew update
  6. if [[ "${OPENSSL}" != "0.9.8" ]]; then
  7. brew outdated openssl || brew upgrade openssl
  8. fi
  9. if which pyenv > /dev/null; then
  10. eval "$(pyenv init -)"
  11. fi
  12. brew install lz4
  13. brew outdated pyenv || brew upgrade pyenv
  14. brew install pkg-config
  15. brew install Caskroom/versions/osxfuse
  16. case "${TOXENV}" in
  17. py34)
  18. pyenv install 3.4.3
  19. pyenv global 3.4.3
  20. ;;
  21. py35)
  22. pyenv install 3.5.1
  23. pyenv global 3.5.1
  24. ;;
  25. esac
  26. pyenv rehash
  27. python -m pip install --user 'virtualenv<14.0'
  28. else
  29. pip install 'virtualenv<14.0'
  30. sudo apt-get update
  31. sudo apt-get install -y liblz4-dev
  32. sudo apt-get install -y libacl1-dev
  33. sudo apt-get install -y libfuse-dev fuse pkg-config # optional, for FUSE support
  34. fi
  35. python -m virtualenv ~/.venv
  36. source ~/.venv/bin/activate
  37. pip install -r requirements.d/development.txt
  38. pip install codecov
  39. pip install -e .[fuse]