TenSEAL icon indicating copy to clipboard operation
TenSEAL copied to clipboard

Incremental build for faster developing

Open Wheest opened this issue 4 years ago • 2 comments

I am making changes to the internals of the C++ code, and want to quickly test my changes. How can I do this without running a full rebuild, which pip install . does.

Wheest avatar Jul 13 '21 13:07 Wheest

True that not everything need to be rebuilt in order to test a small change, however, the way the python installation works, AFAIK, creates a temporary directory which will be deleted at the end, so no caching on intermediate objects. I can't recall if we had a workaround, but if it can be integrated as a dev tool, it would be great.

youben11 avatar Jul 14 '21 20:07 youben11

Hello,

You can run

python setup.py bdist_wheel -d <build dir>
pip install <build dir>/<name>.whl

bdist_wheel step should reuse the cache on multiple runs.

bcebere avatar Jul 15 '21 15:07 bcebere