summaryrefslogtreecommitdiff
path: root/lang/python/python3-host.mk
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2019-06-03 02:11:20 -0700
committerGitHub <noreply@github.com>2019-06-03 02:11:20 -0700
commit15a06064034478ab65f0c19dad3e043578226a45 (patch)
tree6d645b712c8c69573e603d4645ff00223d003166 /lang/python/python3-host.mk
parent88c709829acaf20a6d8c904a74111e16bec1aa39 (diff)
parent87a31e49f77ea252e454eeb780fee8342119bab0 (diff)
Merge pull request #9100 from jefferyto/isolate-host-python
python,python3: Better isolate host Python
Diffstat (limited to 'lang/python/python3-host.mk')
-rw-r--r--lang/python/python3-host.mk17
1 files changed, 8 insertions, 9 deletions
diff --git a/lang/python/python3-host.mk b/lang/python/python3-host.mk
index 71ae09362..403d0d282 100644
--- a/lang/python/python3-host.mk
+++ b/lang/python/python3-host.mk
@@ -71,16 +71,15 @@ endef
# Note: I shamelessly copied this from Yousong's logic (from python-packages);
HOST_PYTHON3_PIP:=$(STAGING_DIR_HOSTPKG)/bin/pip$(PYTHON3_VERSION)
-define host_python3_pip_install
- $(call host_python3_settings) \
- $(HOST_PYTHON3_PIP) install \
- --root=$(1) \
- --prefix=$(2) \
- $(3)
-endef
-define host_python3_pip_install_host
-$(call host_python3_pip_install,$(STAGING_DIR_HOSTPKG),"",$(1))
+# $(1) => packages to install
+define Build/Compile/HostPy3PipInstall
+ $(call host_python3_settings) \
+ $(HOST_PYTHON3_PIP) \
+ --disable-pip-version-check \
+ --cache-dir "$(DL_DIR)/pip-cache" \
+ install \
+ $(1)
endef
# $(1) => build subdir