You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to just confirm that there isn't any automatic facility in pyenv or pyenv-virtualenv for hooks like the way virtualenvwrapper provides postactivate and postdeactivate scripts. I'm mostly interested in the setting of environment variables when a version activates.
I'm fine with leaving virtualenvwrapper behind (or else I'd play with pyenv-virtualenvwrapper), but I figured I should find out for sure if there is any similar functionality available to me. I didn't see anything along these lines on https://github.com/yyuu/pyenv/wiki/Plugins
Thanks in advance for any info one way or the other!
The text was updated successfully, but these errors were encountered:
At least for now, there is no hook mechanism on version changing in pyenv. It is relatively difficult to hook every version changes in pyenv since it determines the python version on execution time.
If you need such feature, I would recommend you to keep using virtualenvwrapper. Or, I can also recommend you to use other tools such like direnv to setup environment variables.
I wanted to just confirm that there isn't any automatic facility in pyenv or pyenv-virtualenv for hooks like the way virtualenvwrapper provides
postactivate
andpostdeactivate
scripts. I'm mostly interested in the setting of environment variables when a version activates.I'm fine with leaving virtualenvwrapper behind (or else I'd play with pyenv-virtualenvwrapper), but I figured I should find out for sure if there is any similar functionality available to me. I didn't see anything along these lines on https://github.com/yyuu/pyenv/wiki/Plugins
Thanks in advance for any info one way or the other!
The text was updated successfully, but these errors were encountered: