summaryrefslogtreecommitdiffstats
path: root/patches/mod_python-3.3.1/fix-python-module-installation.diff
blob: 1d602cd42fe1e8cdfbe1e3b65e7a45b857044509 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Subject: install python modules into prefix
From: Marc Kleine-Budde <mkl@pengutronix.de>

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
---
 dist/Makefile.in |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Index: mod_python-3.3.1/dist/Makefile.in
===================================================================
--- mod_python-3.3.1.orig/dist/Makefile.in
+++ mod_python-3.3.1/dist/Makefile.in
@@ -34,9 +34,9 @@ install: install_py_lib
 install_py_lib: mod_python src
 	@cd src; $(MAKE) psp_parser.c
 	if test -z "$(DESTDIR)" ; then \
-		$(PYTHON_BIN) setup.py install --optimize 2 --force ; \
+		$(PYTHON_BIN) setup.py install --optimize 2 --force --prefix=@prefix@ ; \
 	else \
-		$(PYTHON_BIN) setup.py install --optimize 2 --force --root $(DESTDIR) ; \
+		$(PYTHON_BIN) setup.py install --optimize 2 --force --prefix=@prefix@ --root $(DESTDIR) ; \
 	fi
 
 mod_python.so: