Repository navigation
Conversation
Merging this PR will not alter performance
Comparing Footnotes
|
Native ARM64 builds of uv currently prefer emulated x86-64 Python on Windows. Prefer native `aarch64` Python across Python versions, with `x86_64` ahead of 32-bit `x86` when no native distribution is available. Explicit architecture requests continue to select emulated Python. Ports astral-sh#2207 and adds the 0.13 breaking-change entry. Land #22098 and #22099 on `main` first, then bring them into the 0.13 release before landing this change. They provide the persistent `UV_PYTHON_ARCH=x86_64` opt-out and retain compatible x86-64 wheels for Windows ARM environment markers.
Native ARM64 builds of uv currently prefer emulated x86-64 Python on Windows. Prefer native `aarch64` Python across Python versions, with `x86_64` ahead of 32-bit `x86` when no native distribution is available. Explicit architecture requests continue to select emulated Python. Ports astral-sh#2207 and adds the 0.13 breaking-change entry. Land #22098 and #22099 on `main` first, then bring them into the 0.13 release before landing this change. They provide the persistent `UV_PYTHON_ARCH=x86_64` opt-out and retain compatible x86-64 wheels for Windows ARM environment markers.
7e9a17b to
728c1b3
Compare
Native ARM64 builds of uv currently prefer emulated x86-64 Python on Windows. Prefer native `aarch64` Python across Python versions, with `x86_64` ahead of 32-bit `x86` when no native distribution is available. Explicit architecture requests continue to select emulated Python. Ports astral-sh#2207 and adds the 0.13 breaking-change entry. Land #22098 and #22099 on `main` first, then bring them into the 0.13 release before landing this change. They provide the persistent `UV_PYTHON_ARCH=x86_64` opt-out and retain compatible x86-64 wheels for Windows ARM environment markers.
728c1b3 to
aaebf9e
Compare
| let x86_64_arch = Arch::from_str("x86_64").expect("valid architecture"); | ||
| let mut request = PythonDownloadRequest::from_str("cpython-windows") | ||
| .expect("valid download request") | ||
| .with_libc(Libc::None); |
There was a problem hiding this comment.
[P2] Avoid calling the private libc builder from this test
On aarch64 targets, this test cannot compile: PythonDownloadRequest::with_libc is private in uv-python-types/src/download_request.rs:208, so calling it from uv-python-managed violates Rust visibility rules. The architecture gate hides this from x86_64 checks. Set the public request.libc field to Some(Libc::None) alongside request.arch instead.
Native ARM64 builds of uv currently prefer emulated x86-64 Python on Windows. Prefer native `aarch64` Python across Python versions, with `x86_64` ahead of 32-bit `x86` when no native distribution is available. Explicit architecture requests continue to select emulated Python. Ports astral-sh#2207 and adds the 0.13 breaking-change entry. Land #22098 and #22099 on `main` first, then bring them into the 0.13 release before landing this change. They provide the persistent `UV_PYTHON_ARCH=x86_64` opt-out and retain compatible x86-64 wheels for Windows ARM environment markers.
5179990 to
2c802ca
Compare
Native ARM64 builds of uv currently prefer emulated x86-64 Python on Windows. Prefer native `aarch64` Python across Python versions, with `x86_64` ahead of 32-bit `x86` when no native distribution is available. Explicit architecture requests continue to select emulated Python. Ports #2207 and adds the 0.13 breaking-change entry. Land astral-sh#22098 and astral-sh#22099 on `main` first, then bring them into the 0.13 release before landing this change. They provide the persistent `UV_PYTHON_ARCH=x86_64` opt-out and retain compatible x86-64 wheels for Windows ARM environment markers.
|
Closing as superseded by astral-sh#22100, which has been merged. |
On Windows ARM64, native
uvprefers emulatedx86_64Python because native wheel support was historically limited. Preferaarch64Python across Python versions, following CPython's change to the Windows ARM64 default. Keepx86_64ahead of 32-bitx86as a fallback when no native distribution is available, and continue honoring explicit architecture requests such ascpython-3.14-windows-x86_64.