feat: first-class 3.13t/3.14t free-threaded python install selectors #2334
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.36) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 204 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.318
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #2334"
general
weight: 0.35
cjames23
Summary
Adds first-class free-threaded CPython install selectors so
hatch python install 3.13t/3.14t(and resolution by those names) target the free-threaded builds directly, installable side by side with the regular3.13/3.14. Thetsuffix is now a recognized variant rather than an unknown distribution name.Why this matters
Issue #1907 asks for a clean way to install the free-threaded (
t) Python builds. Before this,3.13t/3.14twere not recognized selectors, so users could not install the free-threaded interpreters throughhatch pythonthe way they install the standard builds, and a3.13tname did not resolve to a distribution.This teaches the resolver to parse the
tsuffix as a free-threaded variant and map it to the corresponding free-threaded distribution, keeping the existing resolution behavior for non-tnames unchanged. A regular3.13and a3.13tcan be installed and managed side by side.Changes
python/resolve.py: recognize thetfree-threaded suffix in selector resolution, alongside the existing CPU-variant handling, and reject invalid suffixes rather than silently mis-resolving.python/core.py: allow the free-threaded distribution to be selected/installed independently of its non-free-threaded counterpart.Testing
pytest tests/python/test_resolve.py tests/python/test_core.py(run viauv runwith the project installed) passes, covering:3.13t/3.14tselector resolution, invalid-suffix rejection, interaction with CPU variant selection, unchanged compatible/allselection, and installing3.13and3.13tside by side.Fixes #1907