[Setup] Add support for development install
Compare changes
- Christophe Guillon authored
If AIDGE_BUILD_GEN= is in environment the default build backend is used.
+ 6
− 10
@@ -41,27 +41,23 @@ class CMakeBuild(build_ext):
Add capacity in setup.py to do pip editable installs (or development mode), i.e.:
In order to use editable mode even with recent versions of python one should do pip install -v --no-build-isolation -e .
instead of the default install with pip install -v .
This MR allows editable mode to speedup day to day development basically with the changes:
Note that due to behavior changes depending on the python/setuptools versions, the portable method to ensure incremental build on C++ files is to use the first time (pre-install build dependencies, and use --no-build-isolation
):
pip install setuptools setuptools_scm[toml] cmake
pip install --no-build-isolation -v -e .
Then, when C++ files changes:
make -C build install -j $(nproc)
Refer to the list of commits in the MR for details.
I separated them in 6 listed below, the first 5 are preparatory commits or complements to the recent merge of pip_release branch:
README.md
Tested with:
ninja
. Let optional for the developper.If AIDGE_BUILD_GEN= is in environment the default build backend is used.
Copyright © Eclipse Foundation, Inc. All Rights Reserved. Privacy Policy | Terms of Use | Copyright Agent