diff options
author | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2024-01-09 20:09:37 +0100 |
---|---|---|
committer | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2024-01-09 20:09:37 +0100 |
commit | 40adfc1eb681d2b5ded27b53f1c6267daed4d7a3 (patch) | |
tree | 90525e34bbe827edfd9c1538a0dbac2f586fde1c | |
parent | 8e2e30e70bafce6131f9345e8b48f0c33e088480 (diff) | |
download | libgpiod-40adfc1eb681d2b5ded27b53f1c6267daed4d7a3.tar.gz |
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>
-rw-r--r-- | bindings/python/Makefile.am | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bindings/python/Makefile.am b/bindings/python/Makefile.am index 804b2143..65964c75 100644 --- a/bindings/python/Makefile.am +++ b/bindings/python/Makefile.am @@ -36,7 +36,7 @@ all-local: python-tests install-exec-local: $(PYTHON) -m pip install dist/*.whl \ - --prefix=$(DESTDIR)$(prefix) + --ignore-installed --prefix=$(prefix) --root=$(if $(DESTDIR),$(DESTDIR),/) SUBDIRS = gpiod |