Page MenuHomePhabricator

[mlir][python] Tweaks to make python extensions packagable/distributable.

Authored by stellaraccident on Dec 29 2020, 11:39 PM.


  • Works in tandem with prototype packaging scripts here:
  • 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.

Diff Detail

Event Timeline

stellaraccident requested review of this revision.Dec 29 2020, 11:39 PM

I'm going to go ahead and submit this and get your feedback in post-review. It is blocking the ability to make functional distributable binaries.

This revision was not accepted when it landed; it landed in state Needs Review.Dec 30 2020, 11:38 PM
This revision was automatically updated to reflect the committed changes.