2015-08-07 13:17:07 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
set -x
|
|
|
|
|
|
|
|
if [[ "$(uname -s)" == 'Darwin' ]]; then
|
|
|
|
if [[ "${OPENSSL}" != "0.9.8" ]]; then
|
|
|
|
brew outdated openssl || brew upgrade openssl
|
|
|
|
fi
|
|
|
|
|
|
|
|
if which pyenv > /dev/null; then
|
|
|
|
eval "$(pyenv init -)"
|
|
|
|
fi
|
|
|
|
|
2015-08-09 22:03:19 +00:00
|
|
|
brew install lz4
|
2016-05-02 22:11:25 +00:00
|
|
|
brew install xz # required for python lzma module
|
2015-08-07 13:17:07 +00:00
|
|
|
brew outdated pyenv || brew upgrade pyenv
|
2016-08-21 17:27:23 +00:00
|
|
|
brew install pkg-config
|
2017-01-06 05:19:26 +00:00
|
|
|
brew install Caskroom/cask/osxfuse
|
2015-08-07 13:17:07 +00:00
|
|
|
|
|
|
|
case "${TOXENV}" in
|
2015-10-27 22:06:32 +00:00
|
|
|
py35)
|
2017-01-14 23:23:09 +00:00
|
|
|
pyenv install 3.5.2
|
|
|
|
pyenv global 3.5.2
|
2015-10-27 22:06:32 +00:00
|
|
|
;;
|
2017-01-06 05:49:40 +00:00
|
|
|
py36)
|
|
|
|
pyenv install 3.6.0
|
|
|
|
pyenv global 3.6.0
|
|
|
|
;;
|
2015-08-07 13:17:07 +00:00
|
|
|
esac
|
|
|
|
pyenv rehash
|
2016-11-29 20:30:23 +00:00
|
|
|
python -m pip install --user virtualenv
|
2015-08-07 13:17:07 +00:00
|
|
|
else
|
2016-11-29 20:30:23 +00:00
|
|
|
pip install virtualenv
|
2016-08-21 18:17:49 +00:00
|
|
|
sudo apt-get update
|
2017-06-22 18:13:39 +00:00
|
|
|
sudo apt-get install -y fakeroot
|
2015-08-09 21:51:46 +00:00
|
|
|
sudo apt-get install -y liblz4-dev
|
2015-08-07 13:17:07 +00:00
|
|
|
sudo apt-get install -y libacl1-dev
|
2016-08-21 17:27:23 +00:00
|
|
|
sudo apt-get install -y libfuse-dev fuse pkg-config # optional, for FUSE support
|
2015-08-07 13:17:07 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
python -m virtualenv ~/.venv
|
|
|
|
source ~/.venv/bin/activate
|
2015-08-20 23:10:34 +00:00
|
|
|
pip install -r requirements.d/development.txt
|
|
|
|
pip install codecov
|
2017-04-01 16:25:45 +00:00
|
|
|
python setup.py --version
|
2016-08-21 17:27:23 +00:00
|
|
|
pip install -e .[fuse]
|