Description: Hack the makefile to install the python module where dh expects it 
Author: Matthias Geiger <werdahias@debian.org> 
Forwarded: no
Last-Update: 2025-10-05
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/

diff --git a/language/python/Makefile.am b/language/python/Makefile.am
index 758f3aa..00fd069 100644
--- a/language/python/Makefile.am
+++ b/language/python/Makefile.am
@@ -15,7 +15,8 @@ build: gpibinter.c
 	-{ $(PYTHON) setup.py build && touch build; } || { $(RM) -r build; exit 1; }
 
 install-data-local:
-	-$(PYTHON) -m pip install . --prefix=$(DESTDIR)$(prefix) --root-user-action=ignore
+	- mkdir -p ../../debian/tmp/usr/lib/python3/dist-packages
+	-$(PYTHON) setup.py install --install-lib=../../debian/tmp/usr/lib/python3/dist-packages/
 	-$(RM) -r gpib.egg-info/
 
 clean-local:

