pillow_heif icon indicating copy to clipboard operation
pillow_heif copied to clipboard

Provide macosx_13_0_arm64 wheels

Open mattip opened this issue 1 year ago • 5 comments

Describe why it is important and where it will be useful

Some of us are still stuck on macos13 even on arm64, for various reasons. The wheels provided on PyPI are built (I think on cirrus?) with macosx_14_0_arm64.

Describe your proposed solution

~Instead the wheels could be built on github, using the github arm64 13 runners, which would provide binary wheels for macosx_13_0_arm64, and would also unify wheels building on github.~ Could the wheels be built with MACOSX_DEPLOYMENT_TARGET='11.0'?

Describe alternatives you've considered, if relevant

I have to build from source.

Additional context

No response

mattip avatar Aug 12 '24 12:08 mattip

Good day.

Yes, there are plans to move the binary wheel assembly for the next version to GitHub, and I would have done it earlier, but from the information that I can find on GitHub, there are no free runners for Arm on MacOS-13.

https://github.blog/changelog/2024-01-30-github-actions-introducing-the-new-m1-macos-runner-available-to-open-source/ https://docs.github.com/en/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories

I will be glad to be wrong and see an example of an action with macos-13-arm64 for GitHub.

bigcat88 avatar Aug 12 '24 16:08 bigcat88

Hmm. Good point, sorry. Numpy moved to macos-14 runners in this PR. But I see there are macosx_11_0_arm64 wheels for NumPy. Looking more closely, it seems they come from cirrus ci, by using cibuildwheel and MACOSX_DEPLOYMENT_TARGET='11.0'. So I guess cirrus can build wheels for macos_11...

mattip avatar Aug 12 '24 17:08 mattip

I will change the name of the issue to reflect my real request.

mattip avatar Aug 12 '24 17:08 mattip

The problem is that on macOS all libheif packages are installed via brew from binary brew bottles, and to change that someone would need to write separate build actions for libde265, x265, libaom and all the other packages to go away from brew.

It's not impossible, but it would take time..

bigcat88 avatar Aug 12 '24 17:08 bigcat88

Bleh. Thanks for this thought experiment. Maybe someday brew will respect MACOS_DEPLOYMENT_TARGET.

mattip avatar Aug 13 '24 20:08 mattip

I moved this project away from using homebrew for building wheels, the new published version now supports older versions of MacOS.

bigcat88 avatar Sep 30 '25 16:09 bigcat88