install.sh 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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/cask/osxfuse
  16. case "${TOXENV}" in
  17. py34)
  18. pyenv install 3.4.5
  19. pyenv global 3.4.5
  20. ;;
  21. py35)
  22. pyenv install 3.5.2
  23. pyenv global 3.5.2
  24. ;;
  25. py36)
  26. pyenv install 3.6.0
  27. pyenv global 3.6.0
  28. ;;
  29. esac
  30. pyenv rehash
  31. python -m pip install --user 'virtualenv<14.0'
  32. else
  33. pip install 'virtualenv<14.0'
  34. sudo apt-get update
  35. sudo apt-get install -y liblz4-dev
  36. sudo apt-get install -y libacl1-dev
  37. sudo apt-get install -y libfuse-dev fuse pkg-config # optional, for FUSE support
  38. fi
  39. python -m virtualenv ~/.venv
  40. source ~/.venv/bin/activate
  41. pip install -r requirements.d/development.txt
  42. pip install codecov
  43. pip install -e .[fuse]