[all-commits] [llvm/llvm-project] 75ae84: [mlir] Make Python bindings installable.
Stella Laurenzo via All-commits
all-commits at lists.llvm.org
Mon Oct 12 15:20:28 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 75ae846de69cccd6ed66357f3ee3ad3301849d95
https://github.com/llvm/llvm-project/commit/75ae846de69cccd6ed66357f3ee3ad3301849d95
Author: Stella Laurenzo <stellaraccident at gmail.com>
Date: 2020-10-12 (Mon, 12 Oct 2020)
Changed paths:
M mlir/lib/Bindings/Python/CMakeLists.txt
R mlir/lib/Bindings/Python/unix_version.lds
M mlir/test/lit.cfg.py
Log Message:
-----------
[mlir] Make Python bindings installable.
* Links against libMLIR.so if the project is built for DYLIBs.
* Puts things in the right place in build and install time python/ trees so that RPaths line up.
* Adds install actions to install both the extension and sources.
* Copies py source files to the build directory to match (consistent layout between build/install time and one place to point a PYTHONPATH for tests and interactive use).
* Finally, "import mlir" from an installed LLVM just works.
Differential Revision: https://reviews.llvm.org/D89167
More information about the All-commits
mailing list