Replies: 2 comments
-
https://github.com/python-poetry/poetry/blob/main/src/poetry/utils/env/env_manager.py#L216 The difference is, that There could maybe be a check that sets |
Beta Was this translation helpful? Give feedback.
0 replies
-
Possibly related: #2056 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I set up a project to reproduce this: https://github.com/sezanzeb/nested-poetry-example
I want to run the nested project in a different virtualenv, while I am inside the virtualenv of the root project.
The current behavior is, that it won't change the virtualenv. I don't know if this is expected, or a bug. I tried setting the -P and -C options, but they didn't change it. I would have expected -P to work.
I'll create a proper issue, unless what I'm doing is some odd out-of-scope stuff.
Currently I can get it to work by unsetting the VIRTUAL_ENV environment variable, but I don't know if this is actually a stable solution for the future. Using
source deactivate
works as well.Issue boils down to, I guess:
-P
doesn't work when already in a virtualenv.Beta Was this translation helpful? Give feedback.
All reactions