[Python] How to rebuild c++ extension when using pyproject.toml

Discussão em 'Python' iniciado por Stack, Junho 29, 2025.

  1. Stack

    Stack Membro Participativo

    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?

    Continue reading...

Compartilhe esta Página