travis-pyenv
travis-pyenv copied to clipboard
installation with PYENV_VERSION=3.5.3 failed
Just trying travis-pyenv for the first time and hit this:
2017-11-20 21:17:21 (131 MB/s) - ‘setup-pyenv.sh’ saved [5006/5006]
**** Installing pyenv.
mkdir: cannot create directory ‘/opt/pyenv’: File exists
**** Trying to find and use cached python 3.5.3.
No cached python found.
**** Installing python 3.5.3 with pyenv now.
pyenv: /opt/pyenv/versions/3.5.3 already exists
continue with installation? (y/N)
[...and now my build is stuck]
I also specified PYENV_RELEASE="v1.1.5" (latest, and recent, pyenv release)
Full build log at https://travis-ci.org/jab/bidict/jobs/304959775
In general, ideally there'd be some way to make sure this can run in completely non-interactive mode, no matter what questions it might ever have.
Hey, sorry for the slow response. We haven't used travis-pyenv in a while so it's been a lower priority.
The issue is that Travis keeps subtly changing their pyenv setup. They started setting the PYENV_ROOT environment variable which they didn't before. To fix it, set it yourself to something like PYENV_ROOT=$HOME/.travis-pyenv
Thanks for the info! Though to avoid the extra complexity and longer build times, I ended up switching back to using Travis's built-in python versions. FWIW, Travis is now providing much more up-to-date point releases of CPython. Hopefully they'll update their pypy versions soon too.
For the benefit of others though, I suggest a quick update to your README documenting that PYENV_ROOT should be set explicitly.