diegoferigo / cmake-build-extension

Setuptools extension to build and package CMake projects
https://pypi.org/project/cmake-build-extension/
MIT License
67 stars 16 forks source link

Support Python 3.10 #30

Closed diegoferigo closed 2 years ago

diegoferigo commented 3 years ago

The sdist was already supported. This PR builds and publishes a wheel for Python 3.10 and tests the example against it.

diegoferigo commented 3 years ago

The macOS test of Python 3.10 is failing with:

   CMake Error at /private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-y648spuw/overlay/lib/python3.10/site-packages/cmake/data/CMake.app/Contents/share/cmake-3.21/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
    Could NOT find Python3 (missing: Python3_NumPy_INCLUDE_DIRS NumPy) (found
    version "3.10.0")

In this configuration, numpy is not downloaded from a wheel but sdist and then compiled. Maybe this type of installation does not bundle the numpy headers necessary to let CMake find numpy resources.

Let's wait for a while waiting the new wheels (https://github.com/numpy/numpy/issues/20045), otherwise we can mark this build as experimental (and hence, allow failures).