pygobject / pycairo

Python bindings for cairo
https://pycairo.readthedocs.io
Other
611 stars 83 forks source link

Port from setuptools to meson-python #345

Open lazka opened 8 months ago

lazka commented 8 months ago

This is currently blocked on meson-python not supporting cross compiling for arm64 on Windows.

Cross compiling is currently a hack between setuptools and cibuildwheel and not part of any spec, so it's not clear where this should be fixed.

We could drop arm64 wheels to unblock this.

stuaxo commented 5 months ago

Is there an upstream bug for meson-python not supporting arm64 ?

lazka commented 5 months ago

It's not about arm64, it's about cross compiling. And from what I remember the Python build backend APIs don't provide interfaces for cross compiling, so there is no standard way to implement it in a build backend, and in setuptools it works because of hacks.

https://github.com/mesonbuild/meson-python/issues/321 seems relevant.

lazka commented 5 months ago

I wouldn't mind dropping arm64 again... but I also don't mind just keeping this open until something changes.

amolenaar commented 2 months ago

Do you have any download stats for the win/arm64 wheel?

lazka commented 2 weeks ago

Do you have any download stats for the win/arm64 wheel?

I don't know how I would get that.

lazka commented 1 week ago

There are rumors that we'll get arm64 windows CI this year, so I think it's fine to continue with this, since there is a fix in sight.

lazka commented 1 week ago

Got some numbers now using pypinfo: In the last 90 days, there were 49047 Windows wheel downloads, 24 (0.05%) of those for arm64, 598 (1.22%) of those for win32, 48449 (98.83%) for win_amd64.