Files
kami/.ci-files/install_conan.sh
James P. Howard, II 7d5482c082 All new build system
This is based on GavinNL/cpp_library_template, which seems to be a
bit closer to meeting my needs.
2020-09-24 13:14:18 -04:00

26 lines
574 B
Bash

#!/bin/bash
set -e
set -x
if [[ "$(uname -s)" == 'Darwin' ]]; then
brew update || brew update
brew outdated pyenv || brew upgrade pyenv
brew install pyenv-virtualenv
brew install cmake || true
if which pyenv > /dev/null; then
eval "$(pyenv init -)"
fi
pyenv install 2.7.10
pyenv virtualenv 2.7.10 conan
pyenv rehash
pyenv activate conan
fi
pip install conan --upgrade
pip install conan_package_tools bincrafters_package_tools
conan user
conan remote add bincrafters https://api.bintray.com/conan/bincrafters/public-conan