Skip to content

Commit d27dd8c

Browse files
committed
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: scikit-build/scikit-build-core#173 The "Development.Module" is sufficient for building modules: https://cmake.org/cmake/help/latest/module/FindPython.html Signed-off-by: MichaIng <micha@dietpi.com>
1 parent 6f4ad7c commit d27dd8c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pybgcode/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ else ()
2323
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/.. ${CMAKE_CURRENT_BINARY_DIR}/upstream)
2424
endif ()
2525

26-
find_package(Python3 REQUIRED COMPONENTS Interpreter Development)
26+
find_package(Python3 REQUIRED COMPONENTS Interpreter Development.Module)
2727
find_package(pybind11 REQUIRED)
2828

2929
set(PY_VERSION_SUFFIX "")

0 commit comments

Comments
 (0)