python,python3: Use locked for host pip 13266/head
authorJeffery To <jeffery.to@gmail.com>
Mon, 31 Aug 2020 15:23:41 +0000 (23:23 +0800)
committerJeffery To <jeffery.to@gmail.com>
Mon, 31 Aug 2020 15:23:41 +0000 (23:23 +0800)
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
lang/python/python-host.mk
lang/python/python3-host.mk

index 1e3ff9594bb4ad80480180cfcb6751f8f6e27b0f..674164688ef8eef6dd6445bf42dcac0575f1e8c0 100644 (file)
@@ -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
index 4de026ac69466bc5268c1dabf91387d79466e702..9adb21a8845d8f4900658f2d888584cf341269f6 100644 (file)
@@ -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