<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/56037>56037</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [mlir python] Dis-aggregating MLIRPythonExtension.Core
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            mlir:python
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          mikeurbach
      </td>
    </tr>
</table>

<pre>
    Since the work last year to refactor how MLIR Python extensions are linked, we have had this comment about dis-aggregating MLIRPythonExtension.Core: https://github.com/llvm/llvm-project/blob/6ccc2733e72017999a94c10147a71ff595286080/mlir/python/CMakeLists.txt#L279

My understanding is this dependency on MLIRCAPIRegistration is pulling in all the MLIR dialects, translations, and conversions: https://github.com/llvm/llvm-project/blob/10affe74eddb32bd36524e0e42310ef49aadaa3f/mlir/lib/CAPI/Registration/CMakeLists.txt#L1-L14

Some downstream projects may not want all of that, and may just want to depend on the "core" MLIR Python extension. This is definitely the case in the CIRCT project.

I wanted to open an issue before diving in to see if anyone has thoughts about how to go about this.

cc @stellaraccident 
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJylU8tu2zAQ_Br7QsSQSMmyDjqkTgMEcIAg6Q-syJXEhCYNkrLjv--SsdsUyKFFAYEPcTm7MzvsnTp3L9pKZHFCdnL-jRkIkZ0RPIuOeRxARufZ5E7scffwzJ7OcXKW4XtEG7SzgYFHZrR9Q7XgW3ZCNsExDYowdWDS7fdoI4PezZEpHW5gHD2OELUdM-YH5Pcr4mrrPC7ELZtiPARaLPg9faOO09yvCI42xhyv083Bu1eUkba9cT1Nayklb4TAhhdl07YttJUsi7JqoCmHoW5rvlkXm4JC90Z7mg65AlpsH-ENdzrEsIrvBCl2vGkXxd2iuP0YH89stgp9iGBVIkAMM02FB6QDK8-M5Em0trdPD884EpgnrvSTog6zMfmWZWBMFj2rqjQY4hCSghRug8lX8p4SkYj2SEnzr_9QpixgGLCpUKle8F6Jdc0rLLDioixwqFoABSCG38oYne4lKjR9ZvOlWOXNrqw-y_Xi9siUO1m6hrBnl4oC28OZWRfZCZI1SAo3kBoQr4TT-escLgHkxA99k7ZJtAXnMrmE869duWI_UlNyXwZtdURzzhclBEzqp_WWevTjWtLqc9kPOS2qlNhRXiqJsMKMrMeB8lK_jpc2UkRAghwo5uxsMn5yhJvHiWh-mD49Hoob3WWfDPNHPinZoioCVWnAg5RapRezVJ1QrWhhGXU02C3qb6kr7OLW-o7d_eVrWs7edP9smsyYLHhfrwvRLKdObYRspVJFqxpZgipE1QxC9VC3Q9-gWBro0YRUKHUmO0jcXt8Wp4KXuuMF58W6rMq2LkW1kqpqZdVvemzqDVQNyYB70GaValk5Py59l8vq5zHQocl2-3UIIejRYtYm4cNMyXy31284-x7ktMwkuszgJ6E0pZ4">