packages icon indicating copy to clipboard operation
packages copied to clipboard

Problem with package: cmake

Open henryiii opened this issue 1 year ago • 3 comments

Package name

cmake

Package version

3.29.*

PyPI URL

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

piwheels URL

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

Python version

  • [ ] Python 3.7
  • [ ] Python 3.9
  • [ ] Python 3.11

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

  • [X] Yes

I have checked for duplicate issues

  • [X] Yes

I am the maintainer

  • [X] Yes

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.

henryiii avatar Apr 05 '24 01:04 henryiii

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

bennuttall avatar Apr 05 '24 08:04 bennuttall

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.

henryiii avatar Apr 05 '24 17:04 henryiii

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.

bennuttall avatar Apr 07 '24 18:04 bennuttall