pyenv-virtualenv icon indicating copy to clipboard operation
pyenv-virtualenv copied to clipboard

pyenv-virtualenv should not create shims in rehash hook

Open blueyed opened this issue 7 years ago • 2 comments

AFAICS pyenv itself takes care of everything already, doesn't it?

https://github.com/pyenv/pyenv-virtualenv/blob/master/etc/pyenv.d/rehash/envs.bash

A bit related: https://github.com/pyenv/pyenv-virtualenv/issues/211

blueyed avatar Jul 12 '18 22:07 blueyed

@blueyed Is this related to the issue I just wanted to report? (I installed pyenv 30mins ago) and I found out:

  1. When I create venv pyenv virtualenv tools
  2. install some tools there (pip install awscli)
  3. then it creates shims

So when I deactivate venv, bash still can refer to the comands when completing with tab due to path to shims in $PAHT. Which is annoying and undesired behaviour.

Because nothing should reference to commands if they are not supposed to be in path.

1oglop1 avatar Aug 16 '18 18:08 1oglop1

@1oglop1 Related, yes. But this is a more general problem with pyenv/rbenv, but https://github.com/pyenv/pyenv/pull/1185 works good for me in this regard.

blueyed avatar Aug 16 '18 18:08 blueyed