[all-commits] [llvm/llvm-project] 42c57d: [mlir][python] Tweaks to make python extensions pa...

Stella Laurenzo via All-commits all-commits at lists.llvm.org
Wed Dec 30 23:43:14 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 42c57dcc35ea9d6a09469c61473b17c95edcaa2e
      https://github.com/llvm/llvm-project/commit/42c57dcc35ea9d6a09469c61473b17c95edcaa2e
  Author: Stella Laurenzo <stellaraccident at gmail.com>
  Date:   2020-12-30 (Wed, 30 Dec 2020)

  Changed paths:
    M mlir/lib/Bindings/Python/CMakeLists.txt
    M mlir/lib/Bindings/Python/mlir/__init__.py
    M mlir/lib/Bindings/Python/mlir/transforms/__init__.py

  Log Message:
  -----------
  [mlir][python] Tweaks to make python extensions packagable/distributable.

* Works in tandem with prototype packaging scripts here: https://github.com/stellaraccident/mlir-py-release
* The `mlir` top-level now differentiates between in-tree builds where all packages are co-located and distribution mode where all native components are under a top-level `_mlir_libs` package.
* Also fixes the generated dialect python installation again. Hopefully the last tweak.
* With this, I am able to install and generate archives with the above setup script on Linux. Archive size=31M with just host codegen and headers/shared-libraries. Will need more linker tweaks when wiring up the next dependent project.

Differential Revision: https://reviews.llvm.org/D93936




More information about the All-commits mailing list