pyenv-virtualenv
pyenv-virtualenv copied to clipboard
Why is prompt changing being removed?
Hey,
according to current output:
pyenv-virtualenv: prompt changing will be removed from future release. configure `export PYENV_VIRTUALENV_DISABLE_PROMPT=1' to simulate the behavior.
Can I ask how you came to this decision? I really like this feature
You might want to take a look here: https://github.com/pyenv/pyenv-virtualenv/issues/135
Had the same question. Went with https://github.com/pyenv/pyenv-virtualenv/issues/135#issuecomment-582180662 as my workaround.
@yyuu , since it was you who added the warning, could you comment?
My guess is that it's because Virtualenv themselves were going to do that. ...and IIRC already did it, so maybe we can proceed with the removal?
Would be nice to learn their rationale, too, of course...
Looking at https://github.com/pypa/virtualenv/blob/main/src/virtualenv/activation/bash/activate.sh , there's no deprecation, not to mention, removal of the prompt changing in sight.
Lacking any response from @yyuu, my guess is:
Pyenv-virtualenv makes virtualenvs behave like regular installations. The prompt changing removal was intended to erase the difference even further.
Pyenv-virtualenv makes virtualenvs behave like regular installations. The prompt changing removal was intended to erase the difference even further.
In which case, we can as well go the other way and add printing of the active installation(s) to the prompt in the base Pyenv.