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
Opened some of PRs to improve interoperability to Anaconda/Miniconda. As a side effect, I believe this would also sophisticate the handling of virtual environments created by virtualenv/pyvenv.
I'd like to ask you guys to test with your environments including 3rd party tools for interoperability. I'll update this once I wrote missing tests and merge them into master branch....
I've found one problem that might bite some users.
running source activate testenv does not work as it would in anaconda but closes the console
Would it be possible to make the activate shim behave like the activate script of anaconda?
Normally I would of course use pyenv activate but I ran into this because of a script that uses source activate to activate an environment. Which means that setup scripts which work everywhere break if a user has pyenv installed.
Umm. It's difficult to hook the invocation of source activate in pyenv.... I'm trying to look for some workaround for it, but none of working code is ready for now.
This would be a issue living with Anaconda/Miniconda, but it must not be a new issue introduced by the PRs.
Fortunately there is pyenv-virtualenv-init. Manipulating PATH in it might be working for the issue. I don't like to do such thing in pyenv, but I haven't yet found any other solutions. Basically I really hate installing source scripts in PATH 😞
@yyuu Thanks for considering it. I can understand your aversion to installing source scripts in PATH. I tested the PR and it works as expected. Also activating an environment using source and deactivating it with pyenv deactivate works as expected.
Activity
Support creating shims of virtual environments in `envs` (#103)
Support creating shims of virtual environments in `envs` (#103)
yyuu commentedon Nov 4, 2015
Opened some of PRs to improve interoperability to Anaconda/Miniconda. As a side effect, I believe this would also sophisticate the handling of virtual environments created by virtualenv/pyvenv.
activatewithout using virtualenv/venv/conda's script #104envs#106envsdirectory as similar as Anaconda #107thomasjo commentedon Nov 4, 2015
@yyuu Please let me know if there's anything specific I can help out with regards to testing these changes 🙇
cpaulik commentedon Nov 4, 2015
@yyuu Thanks, This looks like a very good set of changes.
yyuu commentedon Nov 5, 2015
I'd like to ask you guys to test with your environments including 3rd party tools for interoperability. I'll update this once I wrote missing tests and merge them into
masterbranch....yyuu commentedon Nov 5, 2015
I've finished merging all of them. Please give it a try, and let me know if there is a problem.
cpaulik commentedon Nov 5, 2015
I've tested all the things that gave me problems before and they work like a charm now. Thanks a lot ❤️
cpaulik commentedon Nov 5, 2015
I've found one problem that might bite some users.
running
source activate testenvdoes not work as it would in anaconda but closes the consoleWould it be possible to make the
activateshim behave like the activate script of anaconda?Normally I would of course use
pyenv activatebut I ran into this because of a script that usessource activateto activate an environment. Which means that setup scripts which work everywhere break if a user haspyenvinstalled.yyuu commentedon Nov 6, 2015
Umm. It's difficult to hook the invocation of
source activatein pyenv.... I'm trying to look for some workaround for it, but none of working code is ready for now.This would be a issue living with Anaconda/Miniconda, but it must not be a new issue introduced by the PRs.
yyuu commentedon Nov 6, 2015
Fortunately there is pyenv-virtualenv-init. Manipulating PATH in it might be working for the issue. I don't like to do such thing in pyenv, but I haven't yet found any other solutions. Basically I really hate installing source scripts in PATH 😞
add a script to hook `source activate` for Anaconda/Miniconda (#103)
yyuu commentedon Nov 6, 2015
Opened a PR for
source activateissue.#108
cpaulik commentedon Nov 6, 2015
@yyuu Thanks for considering it. I can understand your aversion to installing source scripts in PATH. I tested the PR and it works as expected. Also activating an environment using
sourceand deactivating it withpyenv deactivateworks as expected.yyuu commentedon Nov 7, 2015
Is there still something need to be done?
cpaulik commentedon Nov 7, 2015
After a day of testing this works very well now. Thank you.