Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't apply irrelevant constraints when validating site-packages (#5231)
## Summary The current code was checking every constraint against every requirement, regardless of whether they were applicable. In general, this isn't a big deal, because this method is only used as a fast-path to skip resolution -- so we just had way more false-negatives than we should've when constraints were applied. But it's clearly wrong :) ## Test Plan - `uv venv` - `uv pip install flask` - `uv pip install --verbose flask -c constraints.txt` (with `numpy<1.0`) Prior to this change, Flask was reported as not satisfied.
- Loading branch information