jgehrcke / gipc

gevent-cooperative child processes and inter-process communication
https://gehrcke.de/gipc
MIT License
83 stars 13 forks source link

ci: pyenv cache doesn't quite work #92

Closed jgehrcke closed 4 years ago

jgehrcke commented 4 years ago

At first it says

++++printf 'Cached python found, %s. Verifying...' pypy3.5-6.0.0
Cached python found, pypy3.5-6.0.0. Verifying...+

and then it errors out

++++command pyenv global pypy3.5-6.0.0
++++pyenv global pypy3.5-6.0.0
++++pip install -U virtualenv
pyenv: version `pypy3.5-6.0.0' is not installed (set by PYENV_VERSION environment variable)

Mhm.

Full log:

++++printf 'Cached python found, %s. Verifying...' pypy3.5-6.0.0
Cached python found, pypy3.5-6.0.0. Verifying...++++ln -s /home/travis/.pyenv_cache/pypy3.5-6.0.0 /home/travis/.travis-pyenv/versions/pypy3.5-6.0.0
++++verify_python /home/travis/.travis-pyenv/versions/pypy3.5-6.0.0/bin/python
++++local python_bin=/home/travis/.travis-pyenv/versions/pypy3.5-6.0.0/bin/python
++++shift
++++[[ -n '' ]]
++++/home/travis/.travis-pyenv/versions/pypy3.5-6.0.0/bin/python --version
++++printf 'success!\n'
success!
++++return 0
++++echo '**** Activating python pypy3.5-6.0.0 and generating new virtualenv.'
**** Activating python pypy3.5-6.0.0 and generating new virtualenv.
+++++pyenv init -
+++++local command
+++++command=init
+++++'[' 2 -gt 0 ']'
+++++shift
+++++case "$command" in
+++++command pyenv init -
+++++pyenv init -
++++eval 'export PATH="/home/travis/.travis-pyenv/shims:${PATH}"
export PYENV_SHELL=bash
source '\''/home/travis/.travis-pyenv/libexec/../completions/pyenv.bash'\''
command pyenv rehash 2>/dev/null
pyenv() {
  local command
  command="${1:-}"
  if [ "$#" -gt 0 ]; then
    shift
  fi
  case "$command" in
  rehash|shell)
    eval "$(pyenv "sh-$command" "$@")";;
  *)
    command pyenv "$command" "$@";;
  esac
}'
+++++export PATH=/home/travis/.travis-pyenv/shims:/home/travis/.travis-pyenv/shims:/home/travis/.travis-pyenv/bin:/home/travis/.rvm/gems/ruby-2.5.3/bin:/home/travis/.rvm/gems/ruby-2.5.3@global/bin:/home/travis/.rvm/rubies/ruby-2.5.3/bin:/home/travis/.rvm/bin:/home/travis/bin:/home/travis/.local/bin:/usr/local/lib/jvm/openjdk11/bin:/opt/pyenv/shims:/home/travis/.phpenv/shims:/home/travis/perl5/perlbrew/bin:/home/travis/.nvm/versions/node/v8.12.0/bin:/home/travis/gopath/bin:/home/travis/.gimme/versions/go1.11.1.linux.amd64/bin:/usr/local/maven-3.6.0/bin:/usr/local/cmake-3.12.4/bin:/usr/local/clang-7.0.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/home/travis/.phpenv/bin:/opt/pyenv/bin:/home/travis/.yarn/bin
+++++PATH=/home/travis/.travis-pyenv/shims:/home/travis/.travis-pyenv/shims:/home/travis/.travis-pyenv/bin:/home/travis/.rvm/gems/ruby-2.5.3/bin:/home/travis/.rvm/gems/ruby-2.5.3@global/bin:/home/travis/.rvm/rubies/ruby-2.5.3/bin:/home/travis/.rvm/bin:/home/travis/bin:/home/travis/.local/bin:/usr/local/lib/jvm/openjdk11/bin:/opt/pyenv/shims:/home/travis/.phpenv/shims:/home/travis/perl5/perlbrew/bin:/home/travis/.nvm/versions/node/v8.12.0/bin:/home/travis/gopath/bin:/home/travis/.gimme/versions/go1.11.1.linux.amd64/bin:/usr/local/maven-3.6.0/bin:/usr/local/cmake-3.12.4/bin:/usr/local/clang-7.0.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/home/travis/.phpenv/bin:/opt/pyenv/bin:/home/travis/.yarn/bin
+++++export PYENV_SHELL=bash
+++++PYENV_SHELL=bash
+++++source /home/travis/.travis-pyenv/libexec/../completions/pyenv.bash
++++++complete -F _pyenv pyenv
+++++command pyenv rehash
++++pyenv global pypy3.5-6.0.0
++++local command
++++command=global
++++'[' 2 -gt 0 ']'
++++shift
++++case "$command" in
++++command pyenv global pypy3.5-6.0.0
++++pyenv global pypy3.5-6.0.0
++++pip install -U virtualenv
pyenv: version `pypy3.5-6.0.0' is not installed (set by PYENV_VERSION environment variable)
jgehrcke commented 4 years ago

https://github.com/jgehrcke/gipc/pull/91 this cache is now not used anymore in ci