From 4d771503e231ebfe66dda06efa6ca2453926e0b6 Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Sun, 1 Nov 2015 15:34:23 +0900 Subject: switch to directly grabbing pyenv rather than using homebrew on mac --- .travis/install.sh | 10 +++++----- .travis/run.sh | 4 ++++ 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.travis/install.sh b/.travis/install.sh index 21e41523..bab2a173 100755 --- a/.travis/install.sh +++ b/.travis/install.sh @@ -5,16 +5,16 @@ set -x if [[ "$(uname -s)" == 'Darwin' ]]; then brew update || brew update - brew install pyenv - brew outdated pyenv || brew upgrade pyenv if [[ "${OPENSSL}" != "0.9.8" ]]; then brew outdated openssl || brew upgrade openssl fi - if which -s pyenv; then - eval "$(pyenv init -)" - fi + # install pyenv + git clone https://github.com/yyuu/pyenv.git ~/.pyenv + PYENV_ROOT="$HOME/.pyenv" + PATH="$PYENV_ROOT/bin:$PATH" + eval "$(pyenv init -)" case "${TOXENV}" in py26) diff --git a/.travis/run.sh b/.travis/run.sh index cf1bbe28..bda9b545 100755 --- a/.travis/run.sh +++ b/.travis/run.sh @@ -4,7 +4,11 @@ set -e set -x if [[ "$(uname -s)" == "Darwin" ]]; then + # initialize our pyenv + PYENV_ROOT="$HOME/.pyenv" + PATH="$PYENV_ROOT/bin:$PATH" eval "$(pyenv init -)" + if [[ "${OPENSSL}" != "0.9.8" ]]; then # set our flags to use homebrew openssl export ARCHFLAGS="-arch x86_64" -- cgit v1.2.3