FYI, `distutils` (and setup.py) are deprecated and will be removed in Python 3.12. See https://docs.python.org/3.12/whatsnew/3.12.html I've been impressed by scikit-build-core. https://github.com/scikit-build/scikit-build-core