Skip to content

Retain win_amd64 wheels for Windows ARM markers - #1384

Closed
zaniebot wants to merge 1 commit into
mainfrom
zb/retain-win-amd64-wheels-on-arm64
Closed

zaniebot wants to merge 1 commit into
mainfrom
zb/retain-win-amd64-wheels-on-arm64

Conversation

@zaniebot

Copy link
Copy Markdown
Collaborator

An emulated x86-64 interpreter on Windows ARM64 can report ARM64 for platform_machine while using win_amd64 wheel tags. The lockfile's marker filter can then discard a compatible wheel and fall back to a source build, as reported in astral-sh#15693. Retain WinAmd64 wheels when the marker can describe Windows ARM, after the existing concrete-tag and Requires-Python checks. Interpreter selection and the separate win32 emulation policy are unchanged.

@astral-automations-bot astral-automations-bot Bot added area:windows Specific to the Windows platform bug Something isn't working labels Sep 11, 2026
@zaniebot
zaniebot force-pushed the zb/retain-win-amd64-wheels-on-arm64 branch from 6b6c862 to 73d7080 Compare September 11, 2026 02:44
@zaniebot zaniebot added risk:2 Low, contained risk of minor incorrect behavior with straightforward recovery. priority:2 Important: bounded correctness, release reliability, committed work, or proven performance gains. size:2 Moderate: one subsystem with meaningful invariants, edge cases, or operational evidence to inspect. labels Sep 11, 2026
@astral-automations-bot
astral-automations-bot Bot force-pushed the zb/retain-win-amd64-wheels-on-arm64 branch from 73d7080 to 8d2def5 Compare September 16, 2026 11:46
@codspeed

codspeed Bot commented Sep 16, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 25 untouched benchmarks


Comparing zb/retain-win-amd64-wheels-on-arm64 (8d2def5) with main (1bf6779)

Open in CodSpeed

zanieb added a commit to astral-sh/uv that referenced this pull request Oct 2, 2026
An x86-64 Python interpreter running under emulation on Windows ARM64
can report `ARM64` for `platform_machine` while its supported wheel tags
contain `win_amd64`. When a lockfile is restricted to an ARM
environment, the marker filter can infer that those wheels are
unreachable and discard them. A later install with the emulated
interpreter then builds from source unnecessarily, or fails if the
package cannot be built locally.

Retain `win_amd64` wheels when the dependency marker can describe
Windows ARM. Explicit wheel-tag compatibility and `Requires-Python`
checks still run first, so this does not make an incompatible wheel
installable. This fixes existing emulated-interpreter behavior
regardless of which Python architecture uv selects by default.

Ports astral-sh#1384.
Closes #15693
See python/cpython#98962
@zaniebot zaniebot added the project:maintainer-followups Maintainer follow-up work label Oct 9, 2026
@astral-automations-bot
astral-automations-bot Bot force-pushed the zb/retain-win-amd64-wheels-on-arm64 branch from 8d2def5 to 8e4b4c7 Compare October 12, 2026 14:01

zsol commented Oct 13, 2026

Copy link
Copy Markdown
Member

Closing as superseded by astral-sh#22099, which has been merged.

@zsol zsol closed this Oct 13, 2026

This branch was successfully deployed

1 active deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:windows Specific to the Windows platform bug Something isn't working priority:2 Important: bounded correctness, release reliability, committed work, or proven performance gains. project:maintainer-followups Maintainer follow-up work risk:2 Low, contained risk of minor incorrect behavior with straightforward recovery. size:2 Moderate: one subsystem with meaningful invariants, edge cases, or operational evidence to inspect.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants