[Mlir-commits] [mlir] [mlir][python] factor out pure python core sources (PR #71592)
Maksim Levental
llvmlistbot at llvm.org
Tue Nov 7 14:44:33 PST 2023
https://github.com/makslevental created https://github.com/llvm/llvm-project/pull/71592
I'd like to be able to install just the Python core sources (without building/including the pybind sources).
>From d238305d523608219a8640cbe4dee5c006dab3e0 Mon Sep 17 00:00:00 2001
From: max <maksim.levental at gmail.com>
Date: Tue, 7 Nov 2023 16:43:25 -0600
Subject: [PATCH] [mlir][python] factor out pure python core sources
---
mlir/python/CMakeLists.txt | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
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