-
Notifications
You must be signed in to change notification settings - Fork 616
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
--python
can't be used when UV_SYSTEM_PYTHON=false
#3829
Comments
(I assume this is a quirk of the group: Line 776 in ce4d862
|
--python
can't be used when system python is _disabled_--python
can't be used when system python is _disabled_ via env var
Yes there's no way to support this in Clap. We'd have to remove the group IIRC. |
Also note that Also just scrubbing the env before calling |
Ah I recently ran into this at tox-dev/tox-uv#57 (comment) too It would be nice to override it... |
@epage 👋 Do you think this is something Clap would reasonably support (some kind of "its only a collision if two in the group are "truthy"")? If not, @charliermarsh you can probably just close this issue as not planned. There's an easy workaround. (I couldn't tell if this fit in any of the existing issues, like clap-rs/clap#5041 or if |
We ran into it before and I think we ended up removing the group. |
--python
can't be used when system python is _disabled_ via env var--python
can't be used when UV_SYSTEM_PYTHON=false
Actually confused because I thought I fixed this in #3000. |
(But clearly I didn't.) |
I'll just remove the group for now. Better experience. |
Oh, well also I should point out |
Weird...
edit: Oh, you mean you're actually on an older version :D |
Definitely not fixed on the latest version though
|
Yeah I just wanted to get ahead of "oh maybe Josh is using an older version 😂 " (I should type more words in my comments 🤔 ) |
## Summary Allows, e.g., `UV_SYSTEM_PYTHON=false uv pip install --python .venv/bin/python`. This was intended to work after fixing #3000, but I think I misdiagnosed the scope when closing that issue, and the linked PR there only fixed some _other_ problems around index URLs. The only thing we really lose here is we no longer error when `--break-system-packages` is provided without `--system`, but we can enforce that elsewhere if we want. Closes #3829.
For context, clap doesn't consider there to be a conflict for default values, only explicit user values. Environment variables are a weird middle ground that we currently treat as user values which cause problems like this. |
👋 I think this is a CLI quirk, but both of this errors for me:
The text was updated successfully, but these errors were encountered: