Astral explains wheel variants: the PEPs that would make uv add torch just work
charliermarsh · x · 2026-12-01
Astral published an introduction to wheel variants for Python package maintainers. PEPs 817, 825, and 850 propose extending the wheel format so installers can consider extra compatibility properties — GPU architecture or CPU instruction set extensions — when picking a build.
Two gaps in today's format:
- No GPU/TPU requirements: PyPI's torch wheel can't declare it needs CUDA 13.0 and architectures sm75–sm120; PyTorch's own index embeds the CUDA version (+cu130) in the filename but not the GPU architectures, and none of this is standardized.
- No CPU extensions: platform tags identify the architecture but not required SIMD extensions like x86-64-v3.
The post walks through before/after examples and how maintainers can distribute builds for different environments — with the goal that uv add torch gets you the right build for your GPU with zero configuration.
More from coding & agent
- Founder lists the biggest missing products in the agent space — AccBalanced · 2026-12-01
- Professor uses Claude as an advisor's assistant with accumulated meeting memory — rao2z · 2026-12-01
- LinkedIn skipped dual-writes and CDC, using a self-erasing 'database pin' pattern for its DB migration — rseroter · 2026-12-01
- Dev shares agent harness trick: tap any commit to trace the chat and brief behind it — blixt · 2026-12-01
- SPIRITT joins Stripe Provisioning preview: agents that sign up and pay for software — jeff_weinstein · 2026-12-01
- Simon Willison: ex-managers thrive with AI coding agents, lifelong ICs most at sea — lennysan · 2026-12-01