jorgenschaefer / elpy

Emacs Python Development Environment
GNU General Public License v3.0
1.9k stars 261 forks source link

pyvenv.el or virtualenvwrapper.el #1014

Open spluque opened 8 years ago

spluque commented 8 years ago

I have been using virtualenvwrapper.el for some time but I see that elpy has its own utility that serves a similar purpose. Are there any advantages/gotchas for using one over the other? A quick try of pyvenv shows that it doesn't do anything with interactive shells. Virtualenvwrapper.sh seems to mimic the system's virtualenvwrapper's behaviour of modifying the shell's prompt to indicate one is in a virtualenv. Thanks for any feedback.

jorgenschaefer commented 8 years ago

pyvenv has its own repository at https://github.com/jorgenschaefer/pyvenv/ which also lists the reasons why I wrote it in comparison to virtualenv.el. The primary differences for me are virtualenvwrapper hooks. As for displaying the current virtualenv, you can enable pyvenv-mode and it'll show the virtualenv in your mode line. Does this help?

spluque commented 8 years ago

Thanks for your feedback. I wasn't aware of virtualenv.el, and have only used virtualenvwrapper.el until now. I like that the latter helps initialize all shells from Emacs, so that if a virtualenv is active, shells also start there. However, I'm really liking how lightweight pyvenv is and also giving access to run virtualenvwrapper hooks.

jorgenschaefer commented 8 years ago

pyvenv will also affect shells within Emacs. Just not the prompt there, I guess.