summaryrefslogtreecommitdiff
path: root/lang/python/python-host.mk
diff options
context:
space:
mode:
Diffstat (limited to 'lang/python/python-host.mk')
-rw-r--r--lang/python/python-host.mk17
1 files changed, 8 insertions, 9 deletions
diff --git a/lang/python/python-host.mk b/lang/python/python-host.mk
index eb58c557e..44ecbbf8d 100644
--- a/lang/python/python-host.mk
+++ b/lang/python/python-host.mk
@@ -71,16 +71,15 @@ endef
# Note: I shamelessly copied this from Yousong's logic (from python-packages);
HOST_PYTHON_PIP:=$(STAGING_DIR_HOSTPKG)/bin/pip$(PYTHON_VERSION)
-define host_python_pip_install
- $(call host_python_settings) \
- $(HOST_PYTHON_PIP) install \
- --root=$(1) \
- --prefix=$(2) \
- $(3)
-endef
-define host_python_pip_install_host
-$(call host_python_pip_install,$(STAGING_DIR_HOSTPKG),"",$(1))
+# $(1) => packages to install
+define Build/Compile/HostPyPipInstall
+ $(call host_python_settings) \
+ $(HOST_PYTHON_PIP) \
+ --disable-pip-version-check \
+ --cache-dir "$(DL_DIR)/pip-cache" \
+ install \
+ $(1)
endef
# $(1) => build subdir