Skip to content

Build CPython 3.12 Windows ARM64 wheel - #34

Closed
yeelam-gordon wants to merge 1 commit into
twisted:trunkfrom
yeelam-gordon:windows-arm64-wheels
Closed

yeelam-gordon wants to merge 1 commit into
twisted:trunkfrom
yeelam-gordon:windows-arm64-wheels

Conversation

@yeelam-gordon

@yeelam-gordon yeelam-gordon commented Sep 1, 2026 •

Copy link
Copy Markdown

Summary

  • build a native CPython 3.12 Windows ARM64 wheel on windows-11-arm
  • smoke-test the compiled extension by creating an IO completion port
  • preserve the existing x64 wheel matrix

Scope

One commit changing only wheel build configuration and package metadata.

Evidence

The native ARM64 wheel built, installed, and passed CompletionPort() during the successful Cura package proof: https://github.com/yeelam-gordon/Cura/actions/runs/33557522209

Without this wheel, Windows ARM64 consumers fall back to an sdist whose bootstrapped Cython extension cannot load natively.

This is a dependency prerequisite for Ultimaker/Cura#21773.

Exercise the native IOCP extension on windows-11-arm so releases can provide a wheel instead of requiring downstream ARM64 source builds.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

@adiroiban adiroiban left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR.

Note that LLM generated contributions should be avoided.


This will need a GitHub Issue inside twisted/twisted to coordinate the release and publishing of the packages.

We test iocp support via twisted/twisted

We don't currently support Windows AMD64 in twisted/twisted.

A separate issue/pr would be needed to enable AMD64 tests

Thanks again for your contribution.

include:
- arch: x64
runner: windows-2022
build: cp39-win_amd64 cp310-win_amd64 cp311-win_amd64 cp312-win_amd64 cp313-win_amd64 cp313t-win_amd64 cp314-win_amd64 cp314t-win_amd64 pp310-win_amd64 pp311-win_amd64

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this needed ? Why not use the values from pyproject.toml ?

cibw_archs: AMD64
- arch: ARM64
runner: windows-11-arm
build: cp312-win_arm64

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why only cp312? Why not support the same list of platforms as for X86_64 ?

Why not move this config to pyproject.toml ?

Comment thread pyproject.toml

[tool.cibuildwheel]
enable = ['all']
test-command = 'python -c "from twisted_iocpsupport.iocpsupport import CompletionPort; CompletionPort()"'

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be removed and replaced with a proper CI/CD test setup.
We can install the packates after building them and then run some tests with trial

@adiroiban

Copy link
Copy Markdown
Member

I am closing this for now. I am happy to reopen if the requested changes are addressed and this is not LLM generated code.

The changes should take into consideration that we will need to allow publishing the changes

@adiroiban adiroiban closed this Sep 17, 2026
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.

2 participants