-
Notifications
You must be signed in to change notification settings - Fork 778
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
uv pip compile of in file containing --no-binary {pkg}
does not include that directive in requirements.txt
#4420
Comments
--no-binary
, even though it's supposed to be supported--no-binary
, even though it's supposed to be supported
Hi! These need to be on separate lines e.g.
|
@zanieb Ah, great, that worked, thanks! I'll submit a PR to add that to the compatibility document, as pip-compile accepts it on the same line and two of the examples in the tickets I linked also did that. |
@zanieb I spoke too soon -- I don't get the error when It's on a separate line, but the output |
Hm interesting I don't think we echo any settings to the output file. I confirmed this does happen with
but not uv. We'll see what Charlie says — I am not familiar with the intent here. |
FYI this is not an issue for my use case, the motivator of that PR, because the packages I want pip compile to resolve on don't have a binary version (wheels), so I don't need to specifiy But perhaps @philvarner has a use case where there is a wheel and they don't want to install it? |
Ah thanks for clarifying that, forgot about that default difference. I feel like we need to emit these for correctness during installations since the |
--no-binary
, even though it's supposed to be supported--no-binary {pkg}
does not include that directive in requirements.txt
It looks like |
This seems to be intended to be supported based on PR/issues:
--no-binary
and--only-binary
support torequirements.txt
#2680uv pip compile|install
can't handle--no-binary lxml
option in requirements file #1461requirements.txt
#1687Running this version of uv on arm64 / Apple Silicon / MacOS with Python 3.10.12
with this requirements.in file:
the uv pip compile command gives an error:
The text was updated successfully, but these errors were encountered: