install.sh 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. py35)
  18. pyenv install 3.5.2
  19. pyenv global 3.5.2
  20. ;;
  21. py36)
  22. pyenv install 3.6.0
  23. pyenv global 3.6.0
  24. ;;
  25. esac
  26. pyenv rehash
  27. python -m pip install --user virtualenv
  28. else
  29. pip install virtualenv
  30. sudo apt-get update
  31. sudo apt-get install -y fakeroot
  32. sudo apt-get install -y liblz4-dev
  33. sudo apt-get install -y libacl1-dev
  34. sudo apt-get install -y libfuse-dev fuse pkg-config # optional, for FUSE support
  35. fi
  36. python -m virtualenv ~/.venv
  37. source ~/.venv/bin/activate
  38. pip install -r requirements.d/development.txt
  39. pip install codecov
  40. python setup.py --version
  41. pip install -e .[fuse]