python-poetry / poetry

Python packaging and dependency management made easy
https://python-poetry.org
MIT License
30.1k stars 2.23k forks source link

Replace --python with --try-first-with #9413

Open hexmode opened 1 month ago

hexmode commented 1 month ago

If a tool like asdf provides a python that is first in the path, virtualenv does not use it even though it is the one used to invoke poetry. Using --try-first-with (introduced in 20.3.0) allows poetry to point to the prefered python.

See https://virtualenv.pypa.io/en/latest/changelog.html#v20-3-0-2021-01-10 Resolves: #9278