scikit-build-core: Error building extension module for windows
I am porting an extension project from scikit-build to scikit-build-core and am experiencing some issues with the windows build on a cibuildwheel based build. My Macos and Ubuntu builds are pworking as expected.
CMake fails with:
*** scikit-build-core 0.7.0 using CMake 3.27.9 (wheel)
*** Configuring CMake...
2023-12-27 11:43:22,452 - scikit_build_core - WARNING - Can't find a Python library, got libdir=None, ldlibrary=None, multiarch=None, masd=None
loading initial cache file C:\Users\RUNNER~1\AppData\Local\Temp\tmpbpj241wi\build\CMakeInit.txt
Preset CMake variables:
CMAKE_BUILD_TYPE="Release"
CMAKE_COMPILE_WARNING_AS_ERROR="ON"
CMAKE_PROJECT_TOP_LEVEL_INCLUDES="D:/a/pillow-jpls/pillow-jpls/cmake/conan_provider.cmake"
CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
*** CMake configuration failed
ERROR Backend subprocess exited when trying to invoke build_wheel
For a complete log, see
https://github.com/planetmarshall/pillow-jpls/actions/runs/7337953314/job/19979681839
About this issue
- Original URL
- State: open
- Created 6 months ago
- Comments: 15
The issue is that if you want to use the Ninja generator on Windows, it needs to be included in
build-system.requires
, which contradicts the documentation when migrating fromscikit-build