install.sh 1.0 KB

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