lowRISC / sonata-system

A full micro-controller system utilizing the CHERIoT Ibex core, part of the Sunburst project funded by UKRI
Apache License 2.0
24 stars 15 forks source link

Add pyproject.toml and build dedicated python env #98

Closed nbdd0121 closed 4 months ago

nbdd0121 commented 4 months ago

Instead of pulling in all OpenTitan python deps, use a dedicated python environment. This is what the ibex-demo-system repo does.

To remove the extra added pip dependency in flake.nix, cheriot-ibex is updated to contain a patch that is present in ibex repo that removes the deprecated distutils and pip3 dependency.

nbdd0121 commented 4 months ago

Last time I tried the OT Python environment doesn't build on MacOS. I can't try on MacOS now to tell if this slim version would work, but it should be easier to nudge it to a working state.

The sonata simulator builds fine with this environment. It is also more consistent with our python-requirements.txt.