-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
activate.sh: drop $_OLD_VIRTUAL_PATH, use remove_from_path instead #722
Conversation
Using `$_OLD_VIRTUAL_PATH` will overwrite any changes to $PATH inbetween activating and deactivating the virtualenv. It also does not behave well with `exec $SHELL` (reloading your shell). `remove_from_path` is taken from pyenv/rbenv's pyenv-which/rbenv-which shim (https://github.com/sstephenson/rbenv/blob/e851250/libexec/rbenv-which#L18-L27).
3ed2cdf
to
6b44d8d
Compare
d33e617
to
1682ed6
Compare
@blueyed I like the idea of this, however concerned that this might not be portable shell code? We don't have the luxury of demanding bash. |
Hello! As part of an effort to ease the contribution process and adopt a more standard workflow pip has switched to doing development on the If you do nothing, this Pull Request will be automatically closed by @BrownTruck since it cannot be merged. If this pull request is still valid, please rebase it against If you choose to rebase/merge and resubmit this Pull Request, here is an example message that you can copy and paste:
|
@BrownTruck / @dstufft @Ivoz |
This Pull Request was closed because it cannot be automatically reparented to the Please feel free to re-open it or re-submit it if it is still valid and you have rebased it onto |
Using
$_OLD_VIRTUAL_PATH
will overwrite any changes to $PATH inbetweenactivating and deactivating the virtualenv. It also does not behave
well with
exec $SHELL
(reloading your shell).remove_from_path
is taken from pyenv/rbenv's pyenv-which/rbenv-whichshim (https://github.com/sstephenson/rbenv/blob/e851250/libexec/rbenv-which#L18-L27).