Skip to content

Commit 1e87685

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. 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 451bbc7 commit 1e87685

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
@@ -19,7 +19,7 @@ all-local:
1919

2020
install-exec-local:
2121
GPIOD_WITH_TESTS= \
22-
$(PYTHON) setup.py install --prefix=$(DESTDIR)$(prefix)
22+
$(PYTHON) setup.py install --root=$(if $(DESTDIR),$(DESTDIR),/) --prefix=$(prefix)
2323

2424
SUBDIRS = gpiod
2525

0 commit comments

Comments
 (0)