piwheels / packages

Issue tracker for piwheels package issues
https://github.com/piwheels/packages/issues
20 stars 5 forks source link

Problem with package: cmake #440

Open henryiii opened 2 months ago

henryiii commented 2 months ago

Package name

cmake

Package version

3.29.*

PyPI URL

https://pypi.org/project/cmake/

piwheels URL

https://www.piwheels.org/project/cmake/

Python version

I am aware this is the issue tracker for a Python package index specifically for Raspberry Pi

I have checked for duplicate issues

I am the maintainer

More information

The package build is currently broken. https://github.com/scikit-build/cmake-python-distributions/issues/475 The build changed quite a bit, now being based on scikit-build-core instead of scikit-build (classic), which was a setuptools wrapper. I probably could help point out what needs updating if I knew where the build source was.

bennuttall commented 2 months ago

See the build logs here: https://www.piwheels.org/project/cmake/

Screenshot 2024-04-05 at 9 55 34 am

(click the crosses)

e.g. https://www.piwheels.org/logs/0000/1166/7513.txt

henryiii commented 2 months ago

A simple fix would be to skip the one failing permissions test. Needs investigation in CMake, don't think this failure is related to the backend.

The default for making builds is doing to be changing in the 3.29.1 release, you'll need to opt-into running the tests when building the wheel. I assume packagers may want to opt-in, but normal users don't want to run the tests when just building a wheel from an SDist. Not sure if there's a place to add configure-settings or environment variables for the build here.

bennuttall commented 2 months ago

We can add environment variables if necessary. We could set it here: https://github.com/piwheels/piwheels/blob/master/piwheels/slave/builder.py#L440

Alternatively, you could check if PIWHEELS_BUILD is set and disable the tests.

But I think requiring opt-in for running tests makes sense.