2019-07-28 10:29:34 +00:00
|
|
|
#!/usr/bin/env bash
|
2019-07-27 16:58:55 +00:00
|
|
|
|
2019-07-28 10:29:34 +00:00
|
|
|
set -ex
|
2019-07-27 16:58:55 +00:00
|
|
|
|
|
|
|
if [[ "$(uname -s)" == 'Darwin' ]]; then
|
|
|
|
brew update || brew update
|
|
|
|
brew outdated pyenv || brew upgrade pyenv
|
|
|
|
brew install pyenv-virtualenv
|
2019-07-28 10:29:34 +00:00
|
|
|
brew install cmake || brew upgrade cmake || true
|
2019-07-27 16:58:55 +00:00
|
|
|
|
|
|
|
if which pyenv > /dev/null; then
|
|
|
|
eval "$(pyenv init -)"
|
|
|
|
fi
|
|
|
|
|
2019-07-28 10:29:34 +00:00
|
|
|
pyenv install 3.7.1
|
|
|
|
pyenv virtualenv 3.7.1 conan
|
2019-07-27 16:58:55 +00:00
|
|
|
pyenv rehash
|
|
|
|
pyenv activate conan
|
|
|
|
fi
|
|
|
|
|
|
|
|
pip install conan --upgrade
|
2019-07-28 10:29:34 +00:00
|
|
|
pip install conan_package_tools bincrafters_package_tools
|
2019-07-27 16:58:55 +00:00
|
|
|
|
|
|
|
conan user
|