Using the MLIR python interface

Hello I’m trying to get started with the MLIR Python bindings, following this tutorial, but I couldn’t get past the venv setup since the path for the following command does not exists:

export PYTHONPATH=$(cd build && pwd)/tools/mlir/python_packages/mlir_core

running python -c "from mlir import ir" gives me this;

ImportError: cannot import name 'ir' from 'mlir' (~/.venv/mlirdev/lib/python3.11/site-packages/mlir/

python -c "import mlir" runs fine.