1From 030ec81c0dac1e067faf49924d5631bb22ccc90d Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Wed, 23 May 2018 21:20:35 +0300
4Subject: [PATCH] Add a possibility to specify where python modules are
5 installed
6
7Upstream-Status: Inappropriate [oe-core specific to solve multilib use case]
8Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
9---
10 Makefile | 2 +-
11 1 file changed, 1 insertion(+), 1 deletion(-)
12
13diff --git a/Makefile b/Makefile
14index 7e36aa42..edff7d5b 100644
15--- a/Makefile
16+++ b/Makefile
17@@ -996,7 +996,7 @@ endif
18 ifeq ($(PYTHON_BINDINGS),1)
19 install_python: libbtrfsutil_python
20 	$(Q)cd libbtrfsutil/python; \
21-		$(PYTHON) setup.py install --skip-build $(if $(DESTDIR),--root $(DESTDIR)) --prefix $(prefix)
22+		$(PYTHON) setup.py install --skip-build $(if $(DESTDIR),--root $(DESTDIR)) --prefix $(prefix) --install-lib=$(PYTHON_SITEPACKAGES_DIR)
23
24 .PHONY: install_python
25 endif
26