Skip to content
Snippets Groups Projects

[Setup] Add support for development install

Merged Christophe Guillon requested to merge cguillon/aidge_core:dev/cguillon/setup-editable into dev
2 files
+ 24
7
Compare changes
  • Side-by-side
  • Inline
Files
2
  • In editable mode, post installation of files use symlinks
    instead of copy.
    This allow to the either rebuild with pip or directly with the
    build backend, for instance:
    - make -C build install
    - ninja -C build install # with Ninja backend
+ 8
0
@@ -34,6 +34,14 @@ After changes in a python file, no action is required, for changes in .cpp/.h fi
pip install --no-build-isolation -v -e .
```
Or simply use the build backend (generated files in the `build/` directory have been symlinked
during the first editable install):
```bash
make -C build install -j $(nproc)
# or for instance with ninja backend
ninja -C build install
```
In this mode, the C++ compilation build system is located in the local `build/` directory.
Refer to the doc string in `setup.py`for more details on editable mode.
Loading