Skip to content

Support installing wheel variants from Git paths - #22724

Merged
konstin merged 1 commit into
konsti/direct-url-variant-wheelsfrom
konsti/git-path-variant-wheels
Nov 5, 2026
Merged

konstin merged 1 commit into
konsti/direct-url-variant-wheelsfrom
konsti/git-path-variant-wheels

Conversation

@konstin

@konstin konstin commented Oct 19, 2026 •

Copy link
Copy Markdown
Member

Allow installing wheel variants from Git paths when the wheel-variants preview is enabled. Recheck cached wheels against the current system’s supported properties.

@konstin konstin added the internal A refactor or improvement that is not user-facing label Oct 19, 2026
@konstin
konstin requested a review from zsol October 19, 2026 12:17
@codspeed

codspeed Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Merging this PR will not alter performance

1 warning

⚠️ 7 benchmarks are dominated by system calls

System calls cannot be simulated consistently and are left out of the measure. The reported value understates the real cost. Switch to the Walltime instrument to measure them.

Learn more about system calls

See affected benchmarks

✅ 89 untouched benchmarks
⏩ 84 skipped benchmarks1


Comparing konsti/git-path-variant-wheels (a2519f4) with konsti/direct-url-variant-wheels (c0ce5b3)

Open in CodSpeed

Footnotes

  1. 84 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

@konstin
konstin force-pushed the konsti/git-path-variant-wheels branch from 43bda8a to d5b0f58 Compare October 19, 2026 13:14
@konstin
konstin force-pushed the konsti/git-path-variant-wheels branch from d5b0f58 to 57fe801 Compare October 19, 2026 15:02
@konstin
konstin force-pushed the konsti/git-path-variant-wheels branch from 57fe801 to 95d2312 Compare October 20, 2026 07:57
@konstin
konstin force-pushed the konsti/git-path-variant-wheels branch from 95d2312 to 707d50c Compare October 20, 2026 10:43
@konstin
konstin added this pull request to stack #22757 October 20, 2026 11:05
@konstin
konstin force-pushed the konsti/git-path-variant-wheels branch from 707d50c to 2e9503f Compare October 20, 2026 11:18
@konstin
konstin force-pushed the konsti/git-path-variant-wheels branch from 2e9503f to 11bebed Compare October 20, 2026 11:29
@konstin
konstin force-pushed the konsti/git-path-variant-wheels branch from 11bebed to 975b21c Compare October 20, 2026 11:39
Comment thread crates/uv-resolver/src/resolver/mod.rs Outdated
Some(IncompatibleTag::AbiPythonVersion)
} else if let BuiltDist::Path(_) | BuiltDist::DirectUrl(_) = dist
&& filename.variant().is_some()
} else if filename.variant().is_some()

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With a cold cache, uv pip install --dry-run says it would install a Git wheel that needs a newer CUDA driver. If the wheel is already cached, the same command rejects it. I think that’s because we defer the variant property check for Git wheels. If we checked during resolution like we do for local wheels, both runs would reject it.

This branch was previously deployed

1 inactive deployment
automations — a2519f4e Deployed Nov 5, 2026 by konstin via review | security / security review #53431
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal A refactor or improvement that is not user-facing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants