Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Use python-environment.el to call virtualenv directly from Emacs #72
The purpose of this patch is to drop make dependencies, which caused some troubles in the past (see #11 and #70). I made a new Emacs plugin called python-environment.el to automatically create virtual environment and install dependencies. When this patch is pulled, you can do
The pros 2 sounds like a good reason for this change. Assuming less about the location of jedi.el is better.
But I am still not sure if this is the right direction to go. So comments are welcome!
No, it is a way to install into an existing environment. Right now, I just did
If this process still makes a virtualenv the same way it did before, that will still work. It would be cool if it could even be done automatically, by setting some configuration value with the path to the jedi clone, but it's not necessary.
So it means that you need to have
Currently virtualenv and pip are called from Makefile. python-environment.el simply replaces Makefile.
@tkf thanks for pinging me in.
FWIW, I don't think additional dependency is at all a problem, we already depend few external packages, so one more is not a problem given that almost everybody use some package system.
So Personally I welcome this change.
(Not so important. I would like default virtualenv stay at
I will try to test this and report back.
@yyr Yes your summary is correct.
You can set
@jkpl It's Emacs plugin. I will make it configurable for sure. :)
@fgallina That's a good point. I think I will change
@asmeurer You can use Jedi for different versions of Python source (you can turn on jedi-mode even in Ruby file if you want to and it will/should not crash). You might see slight difference due to change in standard library source, if you install Jedi with different versions of Python.
OK, thanks guys. I think I will pull this in after some cleanup. I am busy right now so it will be sometime later.