diff mbox series

[libgpiod,2/2] bindings: python: use absolute paths for python test builds

Message ID 20231107134718.2913223-2-phil@gadgetoid.com
State New
Headers show
Series [1/2] bindings: python: fix library path for python test builds | expand

Commit Message

Phil Howard Nov. 7, 2023, 1:47 p.m. UTC
Change the paths used to build test C extensions in place to their abs
counterparts. Avoids issues locating files if the build behaviour changes.

Signed-off-by: Phil Howard <phil@gadgetoid.com>
---
 bindings/python/Makefile.am | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/bindings/python/Makefile.am b/bindings/python/Makefile.am
index b2f2779..95edfff 100644
--- a/bindings/python/Makefile.am
+++ b/bindings/python/Makefile.am
@@ -14,8 +14,8 @@  endif
 all-local:
 	GPIOD_WITH_TESTS=$(BUILD_TESTS) \
 	$(PYTHON) setup.py build_ext --inplace \
-		--include-dirs=$(top_srcdir)/include/:$(top_srcdir)/tests/gpiosim/ \
-		--library-dirs=$(top_builddir)/lib/.libs/:$(top_builddir)/tests/gpiosim/.libs/
+		--include-dirs=$(abs_top_srcdir)/include/:$(abs_top_srcdir)/tests/gpiosim/ \
+		--library-dirs=$(abs_top_builddir)/lib/.libs/:$(abs_top_builddir)/tests/gpiosim/.libs/
 
 install-exec-local:
 	GPIOD_WITH_TESTS= \