From a87bed8295b6fb4125ba439fe76865056a9f98c9 Mon Sep 17 00:00:00 2001 From: MichaIng Date: Wed, 30 Apr 2025 14:22:44 +0200 Subject: [PATCH] cmake: fix manylinux wheel builds manylinux does not ship with the "Development.Embed" component's static Python libraries, which are implied in the "Development" component, hence builds fail. Those libraries are not needed to build extension modules: https://github.com/scikit-build/scikit-build-core/issues/173 The "Development.Module" is sufficient for building modules: https://cmake.org/cmake/help/latest/module/FindPython.html Signed-off-by: MichaIng --- pybgcode/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pybgcode/CMakeLists.txt b/pybgcode/CMakeLists.txt index abfa3d9..abfcc16 100644 --- a/pybgcode/CMakeLists.txt +++ b/pybgcode/CMakeLists.txt @@ -23,7 +23,7 @@ else () add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/.. ${CMAKE_CURRENT_BINARY_DIR}/upstream) endif () -find_package(Python3 REQUIRED COMPONENTS Interpreter Development) +find_package(Python3 REQUIRED COMPONENTS Interpreter Development.Module) find_package(pybind11 REQUIRED) set(PY_VERSION_SUFFIX "")