[all-commits] [llvm/llvm-project] f4f8a6: [mlir][Python] Support finding pybind11 from the p...

Stella Laurenzo via All-commits all-commits at lists.llvm.org
Sun Nov 22 13:00:43 PST 2020


  Branch: refs/heads/temp-test-main
  Home:   https://github.com/llvm/llvm-project
  Commit: f4f8a67aaf13bc66a2b7d55561b14a3724a5e0de
      https://github.com/llvm/llvm-project/commit/f4f8a67aaf13bc66a2b7d55561b14a3724a5e0de
  Author: Stella Laurenzo <stellaraccident at gmail.com>
  Date:   2020-11-22 (Sun, 22 Nov 2020)

  Changed paths:
    M mlir/CMakeLists.txt
    A mlir/cmake/modules/MLIRDetectPythonEnv.cmake
    M mlir/docs/Bindings/Python.md

  Log Message:
  -----------
  [mlir][Python] Support finding pybind11 from the python environment.

* Makes `pip install pybind11` do the right thing with no further config.
* Since we now require a version of pybind11 greater than many LTS OS installs (>=2.6), a more convenient way to get a recent version is preferable.
* Also adds the version spec to find_package so it will skip older versions that may be lying around.
* Tested the full matrix of old system install, no system install, pip install and no pip install.

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




More information about the All-commits mailing list