You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the issues of this repo and believe that this is not a duplicate.
I have searched the FAQ and general documentation and believe that my question is not already covered.
Feature Request
Summary
Configuration options to:
Reject usage of active venv (possibly with an option to override that behaviour through a command line option) AND/OR
Force creation of fresh isolated venv even if there is a venv already active (use active venv's base Python to create new venv)
Motivation
Currently, even if virtualenvs.create is set to true, poetry will still use the active venv. This has undesired consequences:
poetry behavior is dependent on the environment it is running on (non-reproducible "builds")
leads to accidental installation of project dependencies into unrelated venvs.
Scenario when it is a problem: in organizations that have monolithic codebase and use plain pip, developers may rely on a single venv for the whole repository. This venv is often set as a global one (for example through pyenv global). With such setup it is very hard to incrementally introduce a tool like poetry without a coordinated effort. Poetry does not provide isolated environment and it's behavior may be accidentally influenced by the environment it is running in.
The text was updated successfully, but these errors were encountered:
Feature Request
Summary
Configuration options to:
Motivation
Currently, even if
virtualenvs.create
is set totrue
, poetry will still use the active venv. This has undesired consequences:Scenario when it is a problem: in organizations that have monolithic codebase and use plain
pip
, developers may rely on a single venv for the whole repository. This venv is often set as a global one (for example throughpyenv global
). With such setup it is very hard to incrementally introduce a tool likepoetry
without a coordinated effort. Poetry does not provide isolated environment and it's behavior may be accidentally influenced by the environment it is running in.The text was updated successfully, but these errors were encountered: