Skip to content
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

Consider using pew to activate virtual environments #10

Closed
ryanhiebert opened this issue Jan 21, 2017 · 5 comments
Closed

Consider using pew to activate virtual environments #10

ryanhiebert opened this issue Jan 21, 2017 · 5 comments

Comments

@ryanhiebert
Copy link

I've been using it via the pew package, which fills roughly the same niche as virtualenvwrapper, but using the inve approach. My own experience finds it vastly superior to the script-sourcing approach. Explained simply, it starts a subshell instead of changing the current shell. That means de-activating an environment is as simple as the standard exit command in your shell.

https://gist.github.com/datagrok/2199506
https://github.com/berdario/pew

@kennethreitz
Copy link
Contributor

Investigate pew https://github.com/berdario/pew

@kennethreitz
Copy link
Contributor

i think we have all the benefits of this with the current $ pipenv shell command.

@kennethreitz
Copy link
Contributor

i tried using pew, but pew workon does not work on my machine for some reason

@kennethreitz kennethreitz reopened this Jan 24, 2017
@kennethreitz kennethreitz changed the title Consider using inve to activate virtual environments Consider using pew to activate virtual environments Jan 24, 2017
@kennethreitz
Copy link
Contributor

going to punt on this for now

@ryanhiebert
Copy link
Author

That's cool, it's a different model, and it may not be worth the time Right Now.

I'd like to point out, for possible future reference, that the inve model doesn't require using pew, though. inve was originally designed as an activate replacement, that would live in the same place, but open a subshell instead. That concept can be really helpful. pew thought so, and made a virtualenvwrapper alternative built on it, and I think it works excellently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants