File: fix-python-path.diff

package info (click to toggle)
linux-gpib-user 4.3.6-2
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 2,344 kB
  • sloc: ansic: 10,399; perl: 1,120; xml: 375; tcl: 308; makefile: 303; yacc: 240; python: 173; php: 157; lex: 143; sh: 134; lisp: 94
file content (19 lines) | stat: -rw-r--r-- 671 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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-01
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/

--- a/language/python/Makefile.am
+++ b/language/python/Makefile.am
@@ -15,7 +15,8 @@
 	-{ $(PYTHON) setup.py build && touch build; } || { $(RM) -r build; exit 1; }
 
 install-data-local:
-	-$(PYTHON) setup.py install --prefix=$(DESTDIR)$(prefix)
+	- mkdir -p ../../debian/tmp/usr/lib/python3/dist-packages
+	-$(PYTHON) setup.py install --install-lib=../../debian/tmp/usr/lib/python3/dist-packages/
 
 clean-local:
 	-$(RM) -r build