We could use `pip`'s version of the wheel building frontend: https://github.com/pypa/pip/blob/5efa3e83d90b1d64fbf0104d2ba84bef8d7e9648/src/pip/_vendor/pyproject_hooks/_in_process/_in_process.py Has a similar "API" with JSON files and whatnot.