Setuptools: removing setup.py, keeping incremental builds?

So few years after, is there better answer to this question ?

I couldn’t find anything that points how todo increment builds beside calling build_ext directly

while getting this:

        ********************************************************************************
        Requirements should be satisfied by a PEP 517 installer.
        If you are using pip, you can try `pip install --use-pep517`.

        By 2025-Oct-31, you need to update your project and remove deprecated calls
        or your builds will no longer be supported.
        ********************************************************************************

I’ve achieved incremental builds by switching over to meson-python. You can either use its editable install functionality (which re-triggers build upon import), or use a tool like spin to invoke meson with the correct flags. I believe scikit-build-core can do the same via cmake.

5 Likes