-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 sync --extra
and uv sync --group
does not respect other groups and extras that are not supposed to be resolved
#11363
Comments
I think the caveat is that uv tries to build the package regardless of the environment it is working in and the markers or conflicts that are set. |
Thanks for the clear reproduction. Unfortunately, this is correct behavior. You should open an issue with |
@charliermarsh Thank you for the detailed explanation. I will file an issue regarding the package related to the problem you mentioned. |
I can also look into it myself if I can find the build pipeline. It'd be nice to get this fixed. |
You're the best! I have also created an issue, probably in the right repo :) |
Summary
Part 1: Optional Dependencies (Extras)
From the repo https://github.com/validatedev/uv-tensorrt-extradep-issue-mre
It should not try to build the package
tensorrt-cu12-libs
, as it is not requested.Likewise:
It should not attempt to build
tensorrt-cu12-libs
, as it is not requested.If you disable line 19
"tensorrt-cu12-libs>=10.7.0 ; sys_platform == 'linux'"
in thepyproject.toml
file of the repository, you will find that, although other packages within thecuda
optional dependency lackdarwin
builds,uv sync --extra macos
will not encounter any issues.And the same applies to the Dockerfile example.
Part 2: Dependency Groups
From the repo https://github.com/validatedev/uv-tensorrt-groupdep-issue-mre
It should not try to build the package
tensorrt-cu12-libs
, as it is not requested.Likewise:
It should not attempt to build
tensorrt-cu12-libs
, as it is not requested.If you disable line 19
"tensorrt-cu12-libs>=10.7.0 ; sys_platform == 'linux'"
in thepyproject.toml
file of the repository, you will find that, although other packages within thecuda
dependency group lackdarwin
builds,uv sync --group macos
will not encounter any issues.And the same applies to the Dockerfile example.
Docker version:
27.4.1, build b9d17ea
Platform
Darwin 24.3.0 arm64 (macOS Sequoia 15.3 24D60)
Version
uv 0.5.29 (Homebrew 2025-02-06)
Python version
Python 3.12.8
The text was updated successfully, but these errors were encountered: