[Buildroot] [PATCH 1/8] package/python-psutil: add host variant

yegorslists at googlemail.com
2020-03-23T10:49:02Z

From: Fabrice Fontaine <fontaine.fabrice@gmail.com>

host-python-psutil for host-python3 is needed for mongodb >= 4.1.8

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Titouan Christophe <titouan.christophe@railnova.eu>
---
package/python-psutil/python-psutil.mk | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/package/python-psutil/python-psutil.mk b/package/python-psutil/python-psutil.mk
index 62a94f3c41..cfb015cfe6 100644
--- a/package/python-psutil/python-psutil.mk
+++ b/package/python-psutil/python-psutil.mk
@@ -11,4 +11,8 @@ PYTHON_PSUTIL_SETUP_TYPE = setuptools
PYTHON_PSUTIL_LICENSE = BSD-3-Clause
PYTHON_PSUTIL_LICENSE_FILES = LICENSE

+# Needed to build mongodb
+HOST_PYTHON_PSUTIL_NEEDS_HOST_PYTHON = python3
+
$(eval $(python-package))
+$(eval $(host-python-package))
--
2.17.0