)]}'
{
  "commit": "e911eba3ef6990da2c4620c573b99a4f20f53da4",
  "tree": "10c26635e8bf89c19cea799f56e23f2ffa4a3fe2",
  "parents": [
    "46ea03997da6b07dda451be7e15ec7f13ebbe3ea"
  ],
  "author": {
    "name": "Maksim Levental",
    "email": "maksim.levental@gmail.com",
    "time": "Tue Sep 30 01:37:54 2025 -0400"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Tue Sep 30 05:37:54 2025 +0000"
  },
  "message": "[MLIR][Python] Fix stubgen/PYTHONPATH collision/bug (#161307)\n\nIf `PYTHONPATH` is set and points to the build location of the python\nbindings package then when stubgen runs, `_mlir` will get imported twice\nand bad things will happen (e.g., `Assertion !instance \u0026\u0026 “PyGlobals\nalready constructed”’`). This happens because `mlir` is a namespace\npackage and the importer/loader can\u0027t distinguish between\n`mlir._mlir_libs._mlir` and `_mlir_libs._mlir` imported from `CWD`. Or\nsomething like that. The fix is to filter out any entries in\n`PYTHONPATH` that end in `MLIR_BINDINGS_PYTHON_INSTALL_PREFIX/..` (e.g.,\n`python_packages/mlir_core/`).",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "208cbdd1dd535412573a80224b20d20f601bf3f2",
      "old_mode": 33188,
      "old_path": "mlir/cmake/modules/AddMLIRPython.cmake",
      "new_id": "fa6aec8a603a92fb748d49609a650a66e150fa7e",
      "new_mode": 33188,
      "new_path": "mlir/cmake/modules/AddMLIRPython.cmake"
    }
  ]
}
