diff options
author | Bob Ippolito <bob@redivi.com> | 2018-01-21 13:18:30 -0800 |
---|---|---|
committer | Bob Ippolito <bob@redivi.com> | 2018-01-21 13:18:30 -0800 |
commit | 3f96418121493efb32d5df9950448894548eb32d (patch) | |
tree | 6655313952f21254cc8065a1ee848e2554fdd807 | |
parent | f862db98532d78a83b6c45a68572d7a37ee59ec3 (diff) | |
download | xattr-3f96418121493efb32d5df9950448894548eb32d.tar.gz |
attempt to force local pyenv
-rwxr-xr-x | .travis/install.sh | 7 | ||||
-rwxr-xr-x | .travis/run.sh | 3 |
2 files changed, 6 insertions, 4 deletions
diff --git a/.travis/install.sh b/.travis/install.sh index d5d1f02..d51f0a3 100755 --- a/.travis/install.sh +++ b/.travis/install.sh @@ -11,12 +11,13 @@ if [[ -n "$PYENV_VERSION" ]]; then git clone https://github.com/yyuu/pyenv.git ~/.pyenv-xattr fi PYENV_ROOT="$HOME/.pyenv-xattr" + PYENV="$PYENV_ROOT/bin/pyenv" PATH="$PYENV_ROOT/bin:$PATH" (cd "$PYENV_ROOT" && git fetch origin && git reset --hard origin/master) hash -r - eval "$(pyenv init -)" + eval "$("$PYENV" init -)" hash -r - pyenv install --list - pyenv install -s $PYENV_VERSION + "$PYENV" install --list + "$PYENV" install -s "$PYENV_VERSION" pip install wheel fi diff --git a/.travis/run.sh b/.travis/run.sh index 5337e7a..b8aa468 100755 --- a/.travis/run.sh +++ b/.travis/run.sh @@ -5,9 +5,10 @@ set -x if [[ -n "$PYENV_VERSION" ]]; then PYENV_ROOT="$HOME/.pyenv-xattr" + PYENV="$PYENV_ROOT/bin/pyenv" PATH="$PYENV_ROOT/bin:$PATH" hash -r - eval "$(pyenv init -)" + eval "$("$PYENV" init -)" fi python setup.py build_ext -i |