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
This is a question similar to the one asked earlier, here, but involves making a hook that executes once and only once after the creation of a new virtualenv.
Ideally, I would like to make a hook that automatically installs four packages in each new virtualenv I make via pyenv. The parallel function in virtualenvwrapper is postmkvirtualenv, and a user has used it for exactly this behavior as shown in virtualenvwrapper's docs.
I use these packages universally, irrespective of which python version I work on, and so this would save me a simple keystroke. These packages are jedi, flake8, importmagic, and autopep8.
I noticed that there was a hook function built in pyenv but haven't been able to find much documentation on how to make (what I believe to be) this simple hook. I'd appreciate any help!
---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/40433934-how-to-make-a-postmkvirtualenv-hook?utm_campaign=plugin&utm_content=tracker%2F335155&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F335155&utm_medium=issues&utm_source=github).
The text was updated successfully, but these errors were encountered:
Haven't had the time, unfortunately. I suspect it's fairly straight forward
given how lazy of a hook this is. If you're triaging issues on this repo,
feel free to close the issue.
Think I may have seen the solution to this over on SO https://stackoverflow.com/a/54627516
Hope you don't mind me leaving it as a comment here as this issue is always the 1st place I end up when searching for how to do postmkvirtualenv-ish stuff with pyenv-virtualenv
Hi there and thanks for such a great dev tool!
This is a question similar to the one asked earlier, here, but involves making a hook that executes once and only once after the creation of a new virtualenv.
Ideally, I would like to make a hook that automatically installs four packages in each new virtualenv I make via
pyenv
. The parallel function in virtualenvwrapper ispostmkvirtualenv
, and a user has used it for exactly this behavior as shown invirtualenvwrapper
's docs.I use these packages universally, irrespective of which python version I work on, and so this would save me a simple keystroke. These packages are jedi, flake8, importmagic, and autopep8.
I noticed that there was a
--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/40433934-how-to-make-a-postmkvirtualenv-hook?utm_campaign=plugin&utm_content=tracker%2F335155&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F335155&utm_medium=issues&utm_source=github).hook
function built inpyenv
but haven't been able to find much documentation on how to make (what I believe to be) this simple hook. I'd appreciate any help!The text was updated successfully, but these errors were encountered: