Skip to content

Wheel for Windows on arm64 #11199

Closed

Description

@wezm

There was previous discussion in #8148 regarding a Windows on ARM wheel. That was closed with these comments:

We won't ship a wheel for a platform we can't test in CI and GitHub does not currently offer arm64 windows runners. When they do we'll revisit this though! (see: pyca/pynacl#775 for some past discussion in another repo we own)

and

In the absence of some indication from gh that this is even on their roadmap, this is pretty inacationable for us, so I'm going toclose.

GitHub have announced arm runners: https://github.blog/2024-06-03-arm64-on-github-actions-powering-faster-more-efficient-build-systems/ and as an owner of one of the new Snapdragon X ARM laptops I'm keen to simplify installation on this system.

Activity

  1. alex commented on Jul 5, 2024

    @alex
    Member

    Github has arm64 Linux runners. They have not made any arm64 Windows runners available here, so there's nothing for us to do yet.

  2. reaperhulk commented on Jul 5, 2024

    @reaperhulk
    Member

    That’s not quite correct. They did announce both Linux and windows , but no OSS access for either.

    If/when they extend support to OSS we’ll potentially revisit this. It is unfortunate that one part of MS is pushing a new architecture so heavily while another isn’t ready.

  3. alex commented on Jul 5, 2024

    @alex
    Member
  4. The-Aurora commented on Sep 22, 2024

    @The-Aurora

    Hi, I am not well versed to installing packages for Python outside of using pip install.

    Is there a way to install cryptography on a WoA machine with manual work involved?

    Thanks.

  5. alex commented on Sep 22, 2024

    @alex
    Member

    As long as you have the requisite dependencies installed (OpenSSL and rust), pip install cryptography will automatically build from source.

  6. saschanaz commented on Sep 22, 2024

    @saschanaz

    You'll need vcpkg installation and vcpkg install openssl --target arm64-windows-static-md, that should allow local build.

  7. The-Aurora commented on Sep 22, 2024

    @The-Aurora

    Thanks,

    I have installed openssl manually and apparently I somehow clicked on "cancel" instead of "OK" when setting the OPENSSL_DIR env variable. As I noticed it was missing.

    I then tried using vcpkg and set the VCPKG_ROOT variable to C:\vcpkg and that also didn't work. After using OPENSSL_DIR = "C:\vcpkg\installed\arm64-windows-static" (meant to use VCPKG_ROOT), it installed.

    A rookie mistake I am sure that comes with not using something.

    However, confirmation that going through the vcpkg route should work, made me to go through everything so thanks!

  8. CanePlayz commented on Oct 28, 2024

    @CanePlayz

    Here we can keep track:

    github/roadmap#970

  9. CanePlayz commented on Jan 2, 2025

    @CanePlayz

    Runners are now planned for Q1 2025

  10. alex commented on Jan 2, 2025

    @alex
    Member

    I'm very excited, and will believe it when I see it :-)

  11. ofek commented on Mar 4, 2025

    @ofek
    Contributor

    Is cross compilation infeasible?

  12. reaperhulk commented on Mar 4, 2025

    @reaperhulk
    Member

    We, as a general policy, do not build wheels for platforms we don't test. There have been (very rare) exceptions to this, but we'll be waiting for GitHub (which, as a reminder, is a Microsoft-owned company!) to ship OSS Windows arm64 builders before we add wheels.

  13. alex commented on Mar 24, 2025

    @alex
    Member

    This has (unsurprisingly) been deferred to Q2: github/roadmap#1098

  14. henryiii commented on Apr 15, 2025

    @henryiii

    The new ARM runners are live as of yesterday. I think you have to cross-compile, though, as there's no binaries for rustup for windows ARM. I think you'll want to cross-compile for Windows ARM (which is easy), then test the wheels on the native runner.

    (Because of the problems compiling Rust directly, this makes it really hard to use cryptography without pre-compiled wheels). I think I've managed to work around needed cryptography in pypa/cibuildwheel#2362.

  15. 3 remaining items

  16. added a commit that references this issue on Apr 15, 2025
  17. alex commented on Apr 15, 2025

    @alex
    Member

    Let's get this train rolling. Step 1, build OpenSSL: pyca/infra#686

  18. henryiii commented on Apr 15, 2025

    @henryiii

    FYI, I believe 3.9 is the oldest CPython supporting Windows on ARM (noticed 3.7 in the CI).

  19. alex commented on Apr 15, 2025

    @alex
    Member
  20. added a commit that references this issue on Jun 9, 2025
  21. juj commented on Jun 25, 2025

    @juj

    I found myself blocked on this problem, when trying to set up Windows 11 ARM buildbot CI test runners for the Emscripten project.

    Just wanted to comment that the following worked out as a workaround:

    As long as you have the requisite dependencies installed (OpenSSL and rust), pip install cryptography will automatically build from source.

    The steps here being

    C:\>cd code
    C:\code>git clone https://github.com/microsoft/vcpkg.git
    C:\code>cd vcpkg
    C:\code\vcpkg>bootstrap-vcpkg.bat
    C:\code\vcpkg>setx VCPKG_ROOT C:\code\vcpkg
    # Go in Advanced System Settings to add c:\code\vcpkg entry in PATH
    C:\code\vcpkg>vcpkg install openssl --triplet arm64-windows-static-md
    C:\code\vcpkg>setx OPENSSL_DIR C:\code\vcpkg\installed\arm64-windows-static-md
    # Open new command prompt:
    C:\code\vcpkg>pip install cryptography
    

    Maybe that can be of help to anyone googling their way into this error message.

  22. saschanaz commented on Jun 25, 2025

    @saschanaz

    That way the build works, but eventually will give you openssl/openssl#27030

  23. juj commented on Jun 25, 2025

    @juj

    Ah, that's good to know. In my use case I shouldn't be using HTTPS or SSL at all.. just http://localhost communication. Hopefully that'll avoid running into that crash issue.

  24. added a commit that references this issue on Jul 17, 2025
  25. added 2 commits that reference this issue on Jul 29, 2025
  26. linked a pull request that will close this issuerefs #11199 attempt to test on windows arm64 #12770on Jul 30, 2025
  27. added a commit that references this issue on Aug 4, 2025
  28. locked as resolved and limited conversation to collaborators on Nov 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions