Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document interaction of --python, --try-first-with, and $VIRTUALENV_PYTHON and fix inconsistencies #2725

Open
hexmode opened this issue May 19, 2024 · 0 comments

Comments

@hexmode
Copy link

hexmode commented May 19, 2024

Issue

Like @kapec94 in #2659, I came across confusing interaction between these parameters in Poetry (see my comment on 9278). I think, now, that part of the problem I was seeing then was Debian's python3-virtualenv, but I think I've compiled a list of problems using this demonstration script (output).

Interesting points:

ENV python flag try-first-with activated notes
~/.asdf/installs/python/3.9.19/bin/python3.9 3.9.19 try-first-with is used and path is ignored
3.9 ~/.asdf/installs/python/3.9.19/bin/python3.9 3.9.19 try-first-with provides matching python
3.9 ~/.asdf/installs/python/3.11.9/bin/python3.11 3.9.2 try-first-with is ignored b/c wrong version, found python in path
~/.asdf/installs/python/3.11.9/bin/python3.11 ~/.asdf/installs/python/3.9.19/bin/python3.9 3.9.19 python flag should be used (See this comment on #2659)
3.9 3.11 ~/.asdf/installs/python/3.11.9/bin/python3.11 3.9.2 python flag should override env (See this comment on #2285)

Creating a new issue to focus the work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant