[Mlir-commits] [mlir] 478e392 - [mlir][python] Bump min pybind11 version to 2.9.0

Rahul Kayaith llvmlistbot at llvm.org
Tue May 23 10:51:46 PDT 2023


Author: Rahul Kayaith
Date: 2023-05-23T13:51:40-04:00
New Revision: 478e392c0ca64043ec633bd4f095e2f9928dd690

URL: https://github.com/llvm/llvm-project/commit/478e392c0ca64043ec633bd4f095e2f9928dd690
DIFF: https://github.com/llvm/llvm-project/commit/478e392c0ca64043ec633bd4f095e2f9928dd690.diff

LOG: [mlir][python] Bump min pybind11 version to 2.9.0

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

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/mlir/cmake/modules/MLIRDetectPythonEnv.cmake b/mlir/cmake/modules/MLIRDetectPythonEnv.cmake
index 9c89665915140..71b2ab9fb41e1 100644
--- a/mlir/cmake/modules/MLIRDetectPythonEnv.cmake
+++ b/mlir/cmake/modules/MLIRDetectPythonEnv.cmake
@@ -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}', "

diff  --git a/mlir/python/requirements.txt b/mlir/python/requirements.txt
index 16a3dd39c7fcf..7671d33293f48 100644
--- a/mlir/python/requirements.txt
+++ b/mlir/python/requirements.txt
@@ -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


        


More information about the Mlir-commits mailing list