Skip to content

Cannot configure options through environment variables #5906

@jpreese

Description

@jpreese
  • 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 (-vvv option).
  • 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/venvRelated to virtualenv managementkind/bugSomething isn't working as expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions