bindings: python: don't install test-specific C extension binaries
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Tue, 18 Apr 2023 09:58:57 +0000 (11:58 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Tue, 18 Apr 2023 13:08:57 +0000 (15:08 +0200)
commitb9f5d29950a41d2a3089e8e21838822b751f937f
tree3e231191679943bdf9aeb399e1a9858819abaf0f
parent4e75476ccb093739ce8bf52d9a8fdf9947ef1cff
bindings: python: don't install test-specific C extension binaries

We want to ship the source code for C extensions used by the test suite
but not install the built shared objects or put them into the bdist.
Extend the build_ext command to delete the tests from the build directory
right after the extensions have been built and - possibly - installed
into the source tree (if --inplace is set).

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
bindings/python/setup.py