Skip to content

Better support for anaconda virtualenvs #103

Closed

Description

@cpaulik

See the discussion in pyenv/pyenv#467 for reference

Activity

  1. yyuu commented on Nov 4, 2015

    @yyuu
    Collaborator

    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.

  2. thomasjo commented on Nov 4, 2015

    @thomasjo

    @yyuu Please let me know if there's anything specific I can help out with regards to testing these changes 🙇

  3. cpaulik commented on Nov 4, 2015

    @cpaulik
    ContributorAuthor

    @yyuu Thanks, This looks like a very good set of changes.

  4. yyuu commented on Nov 5, 2015

    @yyuu
    Collaborator

    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....

  5. yyuu commented on Nov 5, 2015

    @yyuu
    Collaborator

    I've finished merging all of them. Please give it a try, and let me know if there is a problem.

  6. cpaulik commented on Nov 5, 2015

    @cpaulik
    ContributorAuthor

    I've tested all the things that gave me problems before and they work like a charm now. Thanks a lot ❤️

  7. cpaulik commented on Nov 5, 2015

    @cpaulik
    ContributorAuthor

    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.

  8. reopened this on Nov 5, 2015
  9. yyuu commented on Nov 6, 2015

    @yyuu
    Collaborator

    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.

  10. yyuu commented on Nov 6, 2015

    @yyuu
    Collaborator

    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 😞

  11. yyuu commented on Nov 6, 2015

    @yyuu
    Collaborator

    Opened a PR for source activate issue.

    #108

  12. cpaulik commented on Nov 6, 2015

    @cpaulik
    ContributorAuthor

    @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.

  13. yyuu commented on Nov 7, 2015

    @yyuu
    Collaborator

    Is there still something need to be done?

  14. cpaulik commented on Nov 7, 2015

    @cpaulik
    ContributorAuthor

    After a day of testing this works very well now. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions