From 3656b81e58a790ad903fe6e749e3c6f53a8b6d8d Mon Sep 17 00:00:00 2001 From: "Takeshi Ikuma (LSUHSC)" Date: Fri, 19 Jul 2024 08:43:51 -0500 Subject: [PATCH] scikit-build-core supports FindPython --- CMakeLists.txt | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 78a16e0c..2fb5a328 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -46,16 +46,6 @@ else () export(TARGETS praat fmt FILE dependency_exports.cmake) endif () -# Currently, scikit-build does not support FindPython. -if(SKBUILD) - set(Python_EXECUTABLE "${PYTHON_EXECUTABLE}") - set(Python_INCLUDE_DIR "${PYTHON_INCLUDE_DIR}") - unset(PYTHON_EXECUTABLE) - unset(PYTHON_INCLUDE_DIR) - unset(PYTHON_LIBRARY) - unset(PYTHON_VERSION_STRING) -endif() - set(Python_FIND_IMPLEMENTATIONS CPython PyPy) find_package(Python COMPONENTS Interpreter Development.Module REQUIRED) add_subdirectory(pybind11)