[mlir][python] Bump min pybind11 version to 2.9.0
authorRahul Kayaith <rkayaith@gmail.com>
Tue, 23 May 2023 17:40:00 +0000 (13:40 -0400)
committerRahul Kayaith <rkayaith@gmail.com>
Tue, 23 May 2023 17:51:40 +0000 (13:51 -0400)
2.9.0 was released on December 28, 2021, and some following changes
require at least this version.

Reviewed By: stellaraccident

Differential Revision: https://reviews.llvm.org/D150247

mlir/cmake/modules/MLIRDetectPythonEnv.cmake
mlir/python/requirements.txt

index 9c89665..71b2ab9 100644 (file)
@@ -32,7 +32,7 @@ macro(mlir_configure_python_dev_packages)
   message(STATUS "Found python libraries: ${Python3_LIBRARIES}")
   message(STATUS "Found numpy v${Python3_NumPy_VERSION}: ${Python3_NumPy_INCLUDE_DIRS}")
   mlir_detect_pybind11_install()
-  find_package(pybind11 2.8 CONFIG REQUIRED)
+  find_package(pybind11 2.9 CONFIG REQUIRED)
   message(STATUS "Found pybind11 v${pybind11_VERSION}: ${pybind11_INCLUDE_DIR}")
   message(STATUS "Python prefix = '${PYTHON_MODULE_PREFIX}', "
                  "suffix = '${PYTHON_MODULE_SUFFIX}', "
index 16a3dd3..7671d33 100644 (file)
@@ -1,4 +1,4 @@
 numpy>=1.19.5, <=1.23.5
-pybind11>=2.8.0, <=2.10.3
+pybind11>=2.9.0, <=2.10.3
 PyYAML>= 5.3.1, <=6.0
 dataclasses>=0.6, <=0.8