fonttools / skia-pathops

Python bindings for the Skia library's Path Ops
https://skia.org/docs/dev/present/pathops/
BSD 3-Clause "New" or "Revised" License
47 stars 14 forks source link

Add Linux Arm64 support #48

Closed odidev closed 2 years ago

odidev commented 3 years ago

Hi Team,
I have been working on fonttools for arm64 and it has a dependency on skia-pathops.

Tried installing it through pypi source code, but it looks like skia-pathops is not available for arm64 currently and so got this error:

ERROR: Failed building wheel for skia-pathops 

Failed to build skia-pathops 

ERROR: Could not build wheels for skia-pathops which use PEP 517 and cannot be installed directly 

Do you have any plans of releasing it for arm64?

It would be very helpful if skia-pathops will support arm64 too.

alerque commented 3 years ago

Does chromium build for arm64?

eliheuer commented 2 years ago

I'm having the same issue on an M1 mac 11.6 desktop, the same error from above,

ERROR: Could not build wheels for skia-pathops which use PEP 517 and cannot be installed directly 

is causing pip3 install gftools to fail for me: https://github.com/googlefonts/gftools/issues/415

eliheuer commented 2 years ago

@alerque as far as I know yes: https://chromium.googlesource.com/chromium/src.git/+/main/docs/mac_arm64.md

anthrotype commented 2 years ago

Let's keep this issue open, as I only partly addressed the request in #50: we now build universal2 wheels for mac, which include support for the arm64 architecture, but not yet for linux arm64 (also known as aarch64) architecture. That seems to be more involved. Looks like the skia buildtools don't come with a precompiled gn for linux-aarch64. I'll continue to investigate another time when I'll get the chance. https://github.com/fonttools/skia-builder/pull/4

anthrotype commented 2 years ago

@odidev skia-pathops v0.7.1 now ships with linux-aarch64 (arm64) wheels as well, please test, thanks! https://pypi.org/project/skia-pathops/0.7.1/#files