Option 1:
Create a build directory:
mkdir -p build && cd build
Configure CMake once:
cmake .. -DCMAKE_BUILD_TYPE=Debug
Build incrementally:
cmake --build . --config Debug -j$(nproc)
Install locally (without reinstalling via pip):
cmake --install . --prefix ../install
Option 2:
1. Install the CLI tool:
pip install scikit-build-core[pyproject]
2. Run an in-place build:
python -m scikit_build_core.build --wheel --no-isolation