pyenv init
shows wrong shell configuration instructions when a custom PYENV_ROOT is set
#2637
Open
11 of 13 tasks
pyenv init
shows wrong shell configuration instructions when a custom PYENV_ROOT is set
#2637
Prerequisite
pyenv
and the defaultpython-build
plugin only. Please refrain from reporting issues of other plugins here.Description
CentOS Linux release 7.9.2009 (Core)
x86_64
Latest (v2.3.14)
None yet.
None yet.
No failing command, but an excerpt of the wrong output can be found with the description.
config.log
from the build directory/tmp
.env PYENV_DEBUG=1 pyenv install -f -k -v <version> 2>&1 | tee trace.log
config.log
from the build directory. When usingpyenv install
with-k
as per above, the build directory will be under$PYENV_ROOT/sources
.I'm aware of the XDG discussion in another issue, and I don't plan to interfere in that. But I didn't wanted to have an extra dotfile in my home, so I wanted to put the
pyenv
installation in another "standard" location. I decided to put it in${XDG_DATA_HOME}
, although this is not the best place either. In any case, to achieve this behavior, I started by definig PYENV_ROOT before installation:Apparently, the installation succeeded (in the expected location given by the exported var, not in default
.pyenv
) and gave me instructions to update my config files for automatic initialization. And here comes the issue: it proposed me to export a different PYENV_ROOT than the one really used:It should not be difficult to change those isntructions to include the real
${PYENV_ROOT}
used.The text was updated successfully, but these errors were encountered: