bindings: python: fix library path for python test builds
PATCH 1/2 bindings: python: fix library path for python test builds
Correct top_srcdir to top_builddir for out of tree builds.
--- bindings/python/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
bindings/python/Makefile.am +1 -1
@@ -15,7 +15,7 @@ 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_srcdir)/tests/gpiosim/.libs/ + --library-dirs=$(top_builddir)/lib/.libs/:$(top_builddir)/tests/gpiosim/.libs/ install-exec-local: GPIOD_WITH_TESTS= \
Signature · 1 line
2.34.1
PATCH 2/2 bindings: python: use absolute paths for python test builds
Change the paths used to build test C extensions in place to their abs counterparts. Avoids issues locating files if the build behaviour changes.
--- bindings/python/Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
bindings/python/Makefile.am +2 -2
@@ -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= \
Signature · 1 line
2.34.1
Quoted 22 lines · Phil Howard
Correct
top_srcdirtotop_builddirfor out of tree builds.Signed-off-by Phil Howard <[email protected]>--- bindings/python/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)bindings/python/Makefile.am +1
-2@@ -15,7 +15,7 @@ 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_srcdir)/tests/gpiosim/.libs/ + --library-dirs=$(top_builddir)/lib/.libs/:$(top_builddir)/tests/gpiosim/.libs/ install-exec-local: GPIOD_WITH_TESTS= \ --
Quoted 2 lines
2.34.1
Phil, please squash these two patches together as you're modifying a line in the first one just to change it again in the second.
Bart
Quoted 30 lines · Bartosz Golaszewski
Quoted 22 lines · Phil Howard
Correct
top_srcdirtotop_builddirfor out of tree builds.Signed-off-by Phil Howard <[email protected]>--- bindings/python/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)bindings/python/Makefile.am +1
-2@@ -15,7 +15,7 @@ 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_srcdir)/tests/gpiosim/.libs/ + --library-dirs=$(top_builddir)/lib/.libs/:$(top_builddir)/tests/gpiosim/.libs/ install-exec-local: GPIOD_WITH_TESTS= \ --Quoted 2 lines
2.34.1
Phil, please squash these two patches together as you're modifying a line in the first one just to change it again in the second.
Quoted 1 line
Bart
Nevermind, I squashed it myself.
Bart
Quoted 32 lines · Bartosz Golaszewski
Quoted 30 lines · Bartosz Golaszewski
Quoted 22 lines · Phil Howard
Correct
top_srcdirtotop_builddirfor out of tree builds.Signed-off-by Phil Howard <[email protected]>--- bindings/python/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)bindings/python/Makefile.am +1
-2@@ -15,7 +15,7 @@ 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_srcdir)/tests/gpiosim/.libs/ + --library-dirs=$(top_builddir)/lib/.libs/:$(top_builddir)/tests/gpiosim/.libs/ install-exec-local: GPIOD_WITH_TESTS= \ --Quoted 2 lines
2.34.1
Phil, please squash these two patches together as you're modifying a line in the first one just to change it again in the second.
Quoted 5 lines
Quoted 1 line
Bart
Nevermind, I squashed it myself.
Bart
Thanks, I sent them split since the latter speculative fix hides the previous actual bugfix but perhaps a better commit message could have worked.
Signature · 1 line
Phil