-
-
Notifications
You must be signed in to change notification settings - Fork 410
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
Running Tox inside a pyenv virutalenv #21
Comments
In this case, you don't have to activate the virtualenv of Following example doesn't help?
|
Perhaps I'm not understanding the "pyenv way". Your example seems to break whenever there's other dependencies. I did what you suggest above and changed a few things:
Even weirder, I can successfully |
Sorry, I guess I should have included |
Even so, it seems pretty painful to me to have to switch the e.g.,
I'd rather just activate a single redis-py or foobar virtualenv. That worked with non-pyenv virtualenv and it works with pyenv-virtualenvwrapper. |
There is |
This works. The biggest disconnect for me was I was thinking that More documentation around this might be a good idea in the future. Specifically, something that says that when you activate a |
Closing stale issue. Please reopen this if you still have a problem. |
@andymccurdy You can set up multiple envs as "local" which tox will then pickup e.g. |
@andymccurdy You made my days ! should definitely be in the doc IMHO ! I will do a PR if's ok for you @yyuu
|
It seems like you can't use Tox to test against multiple Python versions inside of a virtualenv created with pyenv-virtualenv. From what I can tell, this is because activating a pyenv-virtualenv sets the
PYENV_VERSION
to the named virtualenv, which makes all the other pythonX.Y shims invalid.A complete example demonstrating this problem:
I've gotten around this problem by using pyenv-virtualenvwrapper, which doesn't seem to use the pyenv versions system to create the virtualenv and doesn't set the PYENV_VERSION environment variable.
The text was updated successfully, but these errors were encountered: