pycapnp icon indicating copy to clipboard operation
pycapnp copied to clipboard

Added macos arm64 Apple Silicon to CI

Open madhavajay opened this issue 2 years ago • 4 comments

This PR adds macos arm64 Apple Silicon to CI.

  • Added missing python 3.10 metadata to setup.py

We need to tell CMAKE to use arm64 as well as the wheel building process otherwise it tries to link an x86 version and fails. I have tested this cross compile on my Intel Mac and then pushed it to an Apple M1 in the cloud and confirmed it installs and imports for python 3.10.

madhavajay avatar Aug 01 '22 06:08 madhavajay

@haata Do you know why CI was breaking on master? Also any chance you can help me get this merged and released, we want to use pycapnp in our library and everyone seems to be getting new Apple Silicon these days. 😍

madhavajay avatar Aug 01 '22 12:08 madhavajay

Okay, so I solved the issues, for macOS the minimum target needs to be higher for older python versions I guess.. 🤷‍♂️ and for windows, they must have changed something in the new windows-2022 runner which is now windows-latest the weird thing is they made the 2022 runner latest before the last pycapnp release, so they must have changed something in that runner.

I can't figure it out, I tried to reverse shell in using tunshell but it doesnt support Windows properly, so then I tried to install a variety of visualstudio libraries and cmake versions which didnt help.

Weirdly, I did a fresh install of Windows 11 on a VM and all that was required was choco install cmake visualstudio2019-workload-vctools which is what we use in our Windows runners which also works on windows server 2022. So.... it must be something to do with cmake and visual studio but I have limited understanding of Windows build systems and C++.

...But its working. 😅

madhavajay avatar Aug 03 '22 05:08 madhavajay

If anyone can figure out the difference here are the two system manifests: https://github.com/actions/virtual-environments/blob/main/images/win/Windows2019-Readme.md https://github.com/actions/virtual-environments/blob/main/images/win/Windows2022-Readme.md

madhavajay avatar Aug 03 '22 05:08 madhavajay

@haata & @kentonv any chance of a review? Before we release our latest version https://github.com/OpenMined/pysyft it would be great if M1 silicon wheels were available on pypi, otherwise we have to tell all our users to install cmake.

madhavajay avatar Aug 05 '22 01:08 madhavajay

Sorry for the delay, I'll take a look at this (i was on a long vacation without internet).

haata avatar Aug 26 '22 14:08 haata

Thanks so much for doing this. I'll try to look into getting a release out this weekend.

haata avatar Aug 26 '22 15:08 haata

@haata no worries, I hope your internet free holiday was great. Sorry. ❤️

madhavajay avatar Aug 27 '22 01:08 madhavajay

https://pypi.org/project/pycapnp/1.2.0/

Pushed this a few days ago.

haata avatar Aug 31 '22 23:08 haata