-
-
Notifications
You must be signed in to change notification settings - Fork 310
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pipenv shell support #1035
Comments
I suspect this is related to #974, and even if it is not, we should probably link the two issues into a larger "Python Support" issue. @xiaq I think it might be best if you give some guidance here (or in #974). I'm willing to try and implement something, either as a built-in or as a separate module, but I don't want to go make something that is counter to how you think Elvish should handle python support. @alper I don't use As a quick workaround I suspect you can make your own virtual environment and activate it using my python module. Again, I don't use |
I've been a Python user, and fan, for thirteen years. I've used a couple of python virtual environment managers. I currently prefer Anaconda. I've never heard of either "pipenv" or "poetry". The problem in pypa/pipenv#4198 is that elvish does not have a It is impossible for Elvish to work with all of the (not just Python) virtual environment managers without being a POSIX 1003.2 compatible shell. And that, by definition, will never happen since Elvish is explicitly not POSIX 1003.2 compatible. The only solution here is a) adding special-case support to those virtual environment managers for b) bundling equivalent mechanisms with Option (a) is preferable but requires someone who cares about a specific virtual environment manager to create, and lobby to get merged, an appropriate change to that project. |
I suspect for Python in general, the best thing would be for Elvish to gain built-in support for "activating" and "deactivating" Python virtual environments. As far as I know all Python project managers use the same underlying virtual environment practices, so this would allow Elvish users to be productive in Python, even if they have to jump through a few extra hoops compared to POSIX compatible shell users. I already have some code that does basically this (it makes some assumptions based on my personal workflow, but this could be changed). As far as fixing specific tools, such as
|
I tried out Elvish and it immediately broke when I did
pipenv shell
. See also this ticket over at pipenv: pypa/pipenv#4198I'm not too clear about the intricacies of this and which side needs to change what to make this work but I thought it would be good to have a tracking ticket on this side.
The text was updated successfully, but these errors were encountered: