Skip to content

Commit 40adfc1

Browse files
author
Bartosz Golaszewski
committed
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: pypa/pip#3063 Suggested-by: Maxim Devaev <[email protected]> Reported-by: Maxim Devaev <[email protected]> Signed-off-by: Bartosz Golaszewski <[email protected]>
1 parent 8e2e30e commit 40adfc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bindings/python/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ all-local: python-tests
3636

3737
install-exec-local:
3838
$(PYTHON) -m pip install dist/*.whl \
39-
--prefix=$(DESTDIR)$(prefix)
39+
--ignore-installed --prefix=$(prefix) --root=$(if $(DESTDIR),$(DESTDIR),/)
4040

4141
SUBDIRS = gpiod
4242

0 commit comments

Comments
 (0)