Commit Graph
1 Commits
Author SHA1 Message Date
DeryFerd 734e1038a6 fix(windows-rocm): read the interpreter pin from the recipe
scripts/windows-rocm-recipe.json is the reviewed record of the interpreter the
Windows ROCm wheels and HIP runtime were tested against. scripts/setup-api.mjs
spelled the uv request out (cpython-3.12-windows-x86_64) and repeated 3.12 in its
x64 error, and the desktop readiness constant spells it out again, so a recipe
bump would leave both asking for an interpreter the recipe no longer pins.

Add a shared helper that turns the recipe into the uv request and the displayed
version, use it in the setup script, and add a test that runs the helper through
node against the shipped recipe and compares it with the desktop constant.

tests/test_windows_rocm_recipe_pin.py runs 3 passed; reverting the setup script
makes it fail with "the ROCm branch retypes the interpreter version instead of
reading the recipe".
2026-11-17 19:30:56 +07:00