[Mlir-commits] [mlir] [MLIR][Standalone] gate wheel build behind MLIR_ENABLE_BINDINGS_PYTHON=ON (PR #161427)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Tue Sep 30 12:52:30 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-mlir

Author: Maksim Levental (makslevental)

<details>
<summary>Changes</summary>

If MLIR_ENABLE_BINDINGS_PYTHON=ON then [StandalonePythonModules](https://github.com/llvm/llvm-project/blob/main/mlir/examples/standalone/pyproject.toml#L38) isn't a valid target.

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


2 Files Affected:

- (modified) mlir/test/Examples/standalone/lit.local.cfg (+2) 
- (modified) mlir/test/Examples/standalone/test.wheel.toy (+1) 


``````````diff
diff --git a/mlir/test/Examples/standalone/lit.local.cfg b/mlir/test/Examples/standalone/lit.local.cfg
index ac03503e46ea3..d4ca29c4594ff 100644
--- a/mlir/test/Examples/standalone/lit.local.cfg
+++ b/mlir/test/Examples/standalone/lit.local.cfg
@@ -17,3 +17,5 @@ config.substitutions.append(("%cmake_build_type", config.cmake_build_type))
 
 if not config.llvm_shared_libs_build:
     config.available_features.add("non-shared-libs-build")
+if not config.enable_bindings_python:
+    config.available_features.add("bindings-python")
diff --git a/mlir/test/Examples/standalone/test.wheel.toy b/mlir/test/Examples/standalone/test.wheel.toy
index 17d8cb5b246c9..5ff927129793b 100644
--- a/mlir/test/Examples/standalone/test.wheel.toy
+++ b/mlir/test/Examples/standalone/test.wheel.toy
@@ -3,6 +3,7 @@
 # C/Users/ContainerAdministrator/AppData/Local/Temp.
 # UNSUPPORTED: target={{.*(windows).*}}
 # REQUIRES: non-shared-libs-build
+# REQUIRES: bindings-python
 
 # RUN: export CMAKE_BUILD_TYPE=%cmake_build_type
 # RUN: export CMAKE_CXX_COMPILER=%host_cxx

``````````

</details>


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


More information about the Mlir-commits mailing list