Skip to content

Commit b513d36

Browse files
authored
Upgrade pybind11 to 2.11.1 (#8616)
Pybind11 2.10.4's source builds "require" CMake version compatibility with 3.5, but this has been removed from the most recent versions of CMake. We take this opportunity to upgrade to the version of pybind11 that is included with Ubuntu 24.04 LTS and which fortunately does not suffer from this issue.
1 parent fd6a31d commit b513d36

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

cmake/dependencies.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ FetchContent_Declare(
1010
FetchContent_Declare(
1111
pybind11
1212
GIT_REPOSITORY https://github.com/pybind/pybind11.git
13-
GIT_TAG 5b0a6fc2017fcc176545afe3e09c9f9885283242 # v2.10.4
13+
GIT_TAG 8a099e44b3d5f85b20f05828d919d2332a8de841 # v2.11.1
1414
GIT_SHALLOW TRUE
1515
)
1616

doc/BuildingHalideWithCMake.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ building the core pieces of Halide.
148148
| [wabt] | `==1.0.36` | `Halide_WASM_BACKEND=wabt` | Does not have a stable API; exact version required. |
149149
| [V8] | trunk | `Halide_WASM_BACKEND=V8` | Difficult to build. See [WebAssembly.md] |
150150
| [Python] | `>=3.8` | `WITH_PYTHON_BINDINGS=ON` | |
151-
| [pybind11] | `~=2.10.4` | `WITH_PYTHON_BINDINGS=ON` | |
151+
| [pybind11] | `~=2.11.1` | `WITH_PYTHON_BINDINGS=ON` | |
152152

153153
Halide maintains the following compatibility policy with LLVM: Halide version
154154
`N` supports LLVM versions `N`, `N-1`, and `N-2`. Our binary distributions

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[build-system]
22
requires = [
33
"scikit-build-core==0.10.5",
4-
"pybind11==2.10.4",
4+
"pybind11==2.11.1",
55
]
66
build-backend = "scikit_build_core.build"
77

python_bindings/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ cmake_dependent_option(
4747
find_package(Python 3.8 REQUIRED Interpreter Development.Module)
4848

4949
if (WITH_PYTHON_BINDINGS)
50-
find_package(pybind11 2.10.4 REQUIRED)
50+
find_package(pybind11 2.11.1 REQUIRED)
5151
endif ()
5252

5353
# Note: this must happen, especially when WITH_PYTHON_BINDINGS is OFF.

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ imageio
44
ninja
55
numpy
66
pillow
7-
pybind11==2.10.4
7+
pybind11==2.11.1
88
scikit-build-core==0.10.5
99
scipy
1010
setuptools>=43

0 commit comments

Comments
 (0)