Skip to content

fix: support maturin develop on Windows ARM with x86 Python#3011

Merged
messense merged 1 commit intoPyO3:mainfrom
messense:fix/windows-arm-x86-develop
Feb 17, 2026
Merged

fix: support maturin develop on Windows ARM with x86 Python#3011
messense merged 1 commit intoPyO3:mainfrom
messense:fix/windows-arm-x86-develop

Conversation

@messense
Copy link
Member

Windows ARM can natively run x86_64 binaries, so building for x86_64-pc-windows-msvc from aarch64-pc-windows should not be treated as cross-compilation.

Also extend detect_arch_from_python to auto-detect architecture mismatches on Windows (e.g. x86_64 Python on ARM host), so maturin develop works without needing --target.

Fixes #2778

Windows ARM can natively run x86_64 binaries, so building for
`x86_64-pc-windows-msvc` from `aarch64-pc-windows` should not be
treated as cross-compilation.

Also extend `detect_arch_from_python` to auto-detect architecture
mismatches on Windows (e.g. x86_64 Python on ARM host), so
`maturin develop` works without needing `--target`.

Fixes PyO3#2778
@messense messense changed the title fix: support maturin develop on Windows ARM with x86 Python fix: support maturin develop on Windows ARM with x86 Python Feb 17, 2026
@messense messense enabled auto-merge (squash) February 17, 2026 03:25
@messense messense merged commit c43b4c1 into PyO3:main Feb 17, 2026
45 checks passed
@messense messense deleted the fix/windows-arm-x86-develop branch February 17, 2026 04:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unable to use maturin develop on windows on arm with x86 cpython

1 participant

Comments