-
-
Notifications
You must be signed in to change notification settings - Fork 531
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
pip Requirements are Installed in Containing Virtual Environment #21
Comments
Original comment by streeter Awesome. Glad it was easily fixable. |
Original comment by @hpk42 You could verify it helps with "pip install -i http://pypi.testrun.org -U tox" which should give you version "1.3.dev2" at least. Thanks for the good report and analysis, btw! |
Original comment by @hpk42 fix issue21 - pip installing to wrong virtualenv, arising when PIP_REQUIRE_VIRTUALENV is set by unsetting it. → <<cset 9fc1e12671d1>> |
Original comment by @hpk42 Not sure how to best fix the issue. One way is to unset PIP_REQUIRE_VIRTUALENV - in fact tox itself takes some care to only call commands that are installed in the virtualenv so maybe that is sufficient. The other way to fix would involve calling the "activate" script -- not sure if this can easily be made to work on win32/... |
In some cases (I think I know the case), tox will install the pip requirements into whatever virtual environment was active at the time of the tox command. Here's an example of what that looks like:
It seems that I had something weird setup with my PIP environment variables.
It seems that the PIP_REQUIRE_VIRTUALENV was throwing off the pip install, forcing the pip used by the tox installed venv to use the activated venv. Removing that environment variable caused it to work. Here's the output of several commands: http://pastie.org/2992756
The text was updated successfully, but these errors were encountered: