Skip to content

Commit

Permalink
Require Python 3.8+ in CMake build (#7117)
Browse files Browse the repository at this point in the history
* Require Python 3.8+ in CMake build

* Update CMakeLists.txt

* Update CMakeLists.txt
  • Loading branch information
steven-johnson committed Oct 25, 2022
1 parent 9163310 commit fd63349
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python_bindings/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ set(PYBIND11_VER 2.6.2 CACHE STRING "The pybind11 version to use (or download)")
# part, so only requesting Module avoids failures when Embed is not
# available, as is the case in the manylinux Docker images.
find_package(Python3 REQUIRED COMPONENTS Interpreter Development.Module)
if (Python3_VERSION VERSION_LESS "3.8")
message(FATAL_ERROR "Halide requires Python v3.8 or later, but found ${Python3_VERSION}.")
endif ()

if (PYBIND11_USE_FETCHCONTENT)
include(FetchContent)
Expand Down

0 comments on commit fd63349

Please sign in to comment.