1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
#!/bin/bash
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
export CPPFLAGS="-I/usr/local/opt/openssl/include"
export LDFLAGS="-L/usr/local/opt/openssl/lib -L/usr/local/opt/libffi/lib"
export PATH="$HOME/.pyenv/bin:/usr/local/opt/openssl/bin:$PATH"
brew update
brew install libffi libsodium
eval "$(pyenv init -)"
pyenv install $PYENV_VERSION
pyenv global $PYENV_VERSION
pyenv rehash
else
git clone git://github.com/jedisct1/libsodium.git
cd libsodium
./autogen.sh
./configure
make && sudo make install
sudo ldconfig
fi
pip install tox
|