Skip to content

Commit

Permalink
Revert "Use MLIR python detection environment (#8037)" (#8038)
Browse files Browse the repository at this point in the history
This reverts commit ab5dc6c.

There was a regression where Linux wheel builds started failing.
  • Loading branch information
mikeurbach authored Jan 8, 2025
1 parent 23edf95 commit 42e4c20
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -514,8 +514,11 @@ option(CIRCT_BINDINGS_PYTHON_ENABLED "Enables CIRCT Python bindings." OFF)
if(CIRCT_BINDINGS_PYTHON_ENABLED)
message(STATUS "CIRCT Python bindings are enabled.")
set(MLIR_DISABLE_CONFIGURE_PYTHON_DEV_PACKAGES 0)
include(MLIRDetectPythonEnv)
mlir_configure_python_dev_packages()
mlir_detect_pybind11_install()
# Prime the search like mlir_configure_python_dev_modules
find_package(Python3 3.8 COMPONENTS Interpreter Development)
find_package(Python3 3.8 COMPONENTS Interpreter Development.Module)
find_package(pybind11 2.10 CONFIG REQUIRED)
else()
message(STATUS "CIRCT Python bindings are disabled.")
# Lookup python either way as some integration tests use python without the
Expand Down

0 comments on commit 42e4c20

Please sign in to comment.