[Mlir-commits] [mlir] c86d35a - [mlir][python] factor out pure python core sources (#71592)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Tue Nov 7 17:52:47 PST 2023
Author: Maksim Levental
Date: 2023-11-07T19:52:43-06:00
New Revision: c86d35a5f422380f51b1e73621a2542535b9c060
URL: https://github.com/llvm/llvm-project/commit/c86d35a5f422380f51b1e73621a2542535b9c060
DIFF: https://github.com/llvm/llvm-project/commit/c86d35a5f422380f51b1e73621a2542535b9c060.diff
LOG: [mlir][python] factor out pure python core sources (#71592)
I'd like to be able to install just the Python core sources (without
building/including the pybind sources).
Added:
Modified:
mlir/python/CMakeLists.txt
Removed:
################################################################################
diff --git a/mlir/python/CMakeLists.txt b/mlir/python/CMakeLists.txt
index 88e6e13602d291a..971ad2dd214a15f 100644
--- a/mlir/python/CMakeLists.txt
+++ b/mlir/python/CMakeLists.txt
@@ -7,14 +7,16 @@ include(AddMLIRPython)
declare_mlir_python_sources(MLIRPythonSources)
declare_mlir_python_sources(MLIRPythonSources.Dialects
ADD_TO_PARENT MLIRPythonSources)
+declare_mlir_python_sources(MLIRPythonSources.Core
+ ADD_TO_PARENT MLIRPythonSources)
################################################################################
# Pure python sources and generated code
################################################################################
-declare_mlir_python_sources(MLIRPythonSources.Core
+declare_mlir_python_sources(MLIRPythonSources.Core.Python
ROOT_DIR "${CMAKE_CURRENT_SOURCE_DIR}/mlir"
- ADD_TO_PARENT MLIRPythonSources
+ ADD_TO_PARENT MLIRPythonSources.Core
SOURCES
_mlir_libs/__init__.py
ir.py
More information about the Mlir-commits
mailing list