[Mlir-commits] [mlir] [MLIR][Python] Remove stale Python module naming status message (PR #211243)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Wed Jul 22 05:15:41 PDT 2026


llvmorg-github-actions[bot] wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-mlir

Author: Anutosh Bhat (anutosh491)

<details>
<summary>Changes</summary>

`PYTHON_MODULE_PREFIX`, `PYTHON_MODULE_SUFFIX`, and `PYTHON_MODULE_EXTENSION` are remnants of the previous pybind11-based Python discovery path and are no longer populated or used by the nanobind build.

The relevant Python SOABI is already reported through `Python3_SOABI`, so we can remove the redundant status message, which currently prints only empty values.

---
Full diff: https://github.com/llvm/llvm-project/pull/211243.diff


1 Files Affected:

- (modified) mlir/cmake/modules/MLIRDetectPythonEnv.cmake (-3) 


``````````diff
diff --git a/mlir/cmake/modules/MLIRDetectPythonEnv.cmake b/mlir/cmake/modules/MLIRDetectPythonEnv.cmake
index 068d6712393c2..ad176af6ef580 100644
--- a/mlir/cmake/modules/MLIRDetectPythonEnv.cmake
+++ b/mlir/cmake/modules/MLIRDetectPythonEnv.cmake
@@ -84,8 +84,5 @@ macro(mlir_configure_python_dev_packages)
     endif()
     find_package(nanobind 2.9 CONFIG REQUIRED)
     message(STATUS "Found nanobind v${nanobind_VERSION}: ${nanobind_INCLUDE_DIR}")
-    message(STATUS "Python prefix = '${PYTHON_MODULE_PREFIX}', "
-            "suffix = '${PYTHON_MODULE_SUFFIX}', "
-            "extension = '${PYTHON_MODULE_EXTENSION}")
   endif()
 endmacro()

``````````

</details>


https://github.com/llvm/llvm-project/pull/211243


More information about the Mlir-commits mailing list