install.sh 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #!/bin/bash
  2. set -e
  3. set -x
  4. if [[ "$(uname -s)" == 'Darwin' ]]; then
  5. if [[ "${OPENSSL}" != "0.9.8" ]]; then
  6. brew outdated openssl || brew upgrade openssl
  7. fi
  8. if which pyenv > /dev/null; then
  9. eval "$(pyenv init -)"
  10. fi
  11. brew install lz4
  12. brew install xz # required for python lzma module
  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
  32. else
  33. pip install virtualenv
  34. sudo apt-get update
  35. sudo apt-get install -y fakeroot
  36. sudo apt-get install -y liblz4-dev
  37. sudo apt-get install -y libacl1-dev
  38. sudo apt-get install -y libfuse-dev fuse pkg-config # optional, for FUSE support
  39. fi
  40. python -m virtualenv ~/.venv
  41. source ~/.venv/bin/activate
  42. pip install -r requirements.d/development.txt
  43. pip install codecov
  44. python setup.py --version
  45. pip install -e .[fuse]