bindings: python: fix package installation with Makefile build
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Tue, 9 Jan 2024 19:09:37 +0000 (20:09 +0100)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Tue, 9 Jan 2024 19:09:37 +0000 (20:09 +0100)
commit40adfc1eb681d2b5ded27b53f1c6267daed4d7a3
tree90525e34bbe827edfd9c1538a0dbac2f586fde1c
parent8e2e30e70bafce6131f9345e8b48f0c33e088480
bindings: python: fix package installation with Makefile build

The modules are installed in the .egg directory, and therefore cannot be
imported after that. Additionally PIP tries to remove the global gpiod
module if it's not invoked with the --ignore-installed option.

Specify correct --root and fix the --prefix switch.

Link: https://github.com/pypa/pip/issues/3063
Suggested-by: Maxim Devaev <mdevaev@gmail.com>
Reported-by: Maxim Devaev <mdevaev@gmail.com>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
bindings/python/Makefile.am