Run command in different shell without exiting current poetry shell. #7905
-
I have written a script that runs a specific build workflow (sphinx) for multiple versions of my project. It copies the contents of specific commits into a temporary directory each and runs the build command there. However I ran into a problem with differing dependencies between versions. The build command itself (sphinx) and its extensions (also python packages) are configured in
The complete code can be found here. In general when having any poetry shell activated one cannot run commands in a different shell without exiting. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Not sure if I understand your issue, but if you want to execute a poetry command in another virtual environment while being inside a virtual environment of an outer |
Beta Was this translation helpful? Give feedback.
Not sure if I understand your issue, but if you want to execute a poetry command in another virtual environment while being inside a virtual environment of an outer
poetry run
you can try to remove"VIRTUAL_ENV"
from theenv
you pass to thesubprocess
. That way, the inner poetry command will not use the outer environment.