From 99d0878d0a054eece2da518ecec979f8f5ddf533 Mon Sep 17 00:00:00 2001 From: Jeffery To Date: Mon, 31 Aug 2020 23:23:41 +0800 Subject: [PATCH] python,python3: Use locked for host pip Signed-off-by: Jeffery To --- lang/python/python-host.mk | 15 +++++++++------ lang/python/python3-host.mk | 17 ++++++++++------- 2 files changed, 19 insertions(+), 13 deletions(-) diff --git a/lang/python/python-host.mk b/lang/python/python-host.mk index 1e3ff9594b..674164688e 100644 --- a/lang/python/python-host.mk +++ b/lang/python/python-host.mk @@ -74,12 +74,15 @@ HOST_PYTHON_PIP:=$(STAGING_DIR_HOSTPKG)/bin/pip$(PYTHON_VERSION) # $(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) + $(call locked, \ + $(call host_python_settings) \ + $(HOST_PYTHON_PIP) \ + --disable-pip-version-check \ + --cache-dir "$(DL_DIR)/pip-cache" \ + install \ + $(1), \ + pip \ + ) endef # $(1) => build subdir diff --git a/lang/python/python3-host.mk b/lang/python/python3-host.mk index 4de026ac69..9adb21a884 100644 --- a/lang/python/python3-host.mk +++ b/lang/python/python3-host.mk @@ -73,13 +73,16 @@ HOST_PYTHON3_PIP:=$(STAGING_DIR_HOSTPKG)/bin/pip$(PYTHON3_VERSION) # $(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 \ - --no-binary :all: \ - $(1) + $(call locked, \ + $(call host_python3_settings) \ + $(HOST_PYTHON3_PIP) \ + --disable-pip-version-check \ + --cache-dir "$(DL_DIR)/pip-cache" \ + install \ + --no-binary :all: \ + $(1), \ + pip \ + ) endef # $(1) => build subdir -- 2.30.2