I have a few C++ extensions for a python library.
Previously, this library was shipped using setup.py and one could recompile via
python setup.py build_ext --inplace if only the C++ files changed.
Since I had to change the build system to manage more complex dependencies, I switched over to pyproject.toml + scicit-build-core + CMake.
Unfortunately I cannot find any way of how to recompile the changed files in this new setup.
At the moment I have to always call pip install . which goes through the whole python dependency management and compiles everything.
TLDR: What is the equivalent of make in this setup?
pip install --no-deps . gets rid of the python dependencies part, but it still recompiles all cpp files, even if they were not changed.
--no-depsflag should do what you want. ie,pip install --no-deps .. It will compile everything in your library, but won't bother installing any of your libraries dependencies.--no-depsonly solves part of the problem.