-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
fix(python): if already in an active virtual environment, use it (do not force/assume ".venv") #10159
fix(python): if already in an active virtual environment, use it (do not force/assume ".venv") #10159
Conversation
…not assume ".venv")
I'm not sure this will work as intended. It will still require a |
Don't think so? The only behaviour change should be if you are already in a venv when you run Logic is:
|
Looks to me like we still create a clean .venv if in a venv and .venv does not exist. And that .venv's python symlinks to original venv's python. |
Hmm, does the right thing if |
Basically, I think what you're trying to do is not supported by design. The At some point, I played with the idea of having the Makefile be independent of the specific environment (basically remove the I think you're stuck with typing / hotkeying the actual commands for now instead of using |
Hmmm... ok, will stick this in |
Will close out to get rid of PR clutter until I find the motivation to make this work...🤣 |
With all the bytecode introspection going on recently I've been switching between
3.9
and3.11
Python venvs a lot, and noticed that we don't account for the possibility of being in a non-default venv in the Makefile; while in my.venv_39
environment I ranmake requirements
and realised that it was updating packages in the default.venv
directory instead.This PR makes a small update to the Makefile definition such that if we are already in a venv we will use it, otherwise we continue to default to the standard
.venv
.