Skip to content

Commit

Permalink
scikit-build-core supports FindPython
Browse files Browse the repository at this point in the history
  • Loading branch information
tikuma-lsuhsc authored and hokiedsp committed Aug 11, 2024
1 parent c5ed344 commit 3656b81
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3656b81

Please sign in to comment.