install.sh 1.2 KB

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