-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Cannot configure options through environment variables #5906
Copy link
Copy link
Closed
Labels
area/venvRelated to virtualenv managementRelated to virtualenv managementkind/bugSomething isn't working as expectedSomething isn't working as expected
Description
- I am on the latest Poetry version.
- I have searched the issues of this repo and believe that this is not a duplicate.
- If an exception occurs when executing a command, I executed it again in debug mode (
-vvvoption).
- OS version and name: macOS Montery version 12.4
- Poetry version: 1.2.0b2
Issue
When calling poetry using environment variables to configure options, they do not seem to be respected. From the documentation, I would expect to be able to create a virtual environment without pip using something like the following:
POETRY_VIRTUALENVS_OPTIONS_NO_PIP=true POETRY_VIRTUALENVS_IN_PROJECT=true POETRY_VIRTUALENVS_PATH=.venv poetry install
The last two values work. Poetry is installed in the project in a folder named .venv -- however, pip is still in the site-packages folder.
I've tried the other "options" as well, and tried different ways to name them but have not been successful.
Are options able to be configured by environment variables?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area/venvRelated to virtualenv managementRelated to virtualenv managementkind/bugSomething isn't working as expectedSomething isn't working as expected