summaryrefslogtreecommitdiff
path: root/lang/python/python3
diff options
context:
space:
mode:
authorJeffery To <jeffery.to@gmail.com>2019-05-29 22:29:20 +0800
committerJeffery To <jeffery.to@gmail.com>2019-05-29 22:29:20 +0800
commit688825f37a44f08623e93df9abb008a7199dfe5c (patch)
treea446c9768670020edf3357b13e5c353f80fb0cee /lang/python/python3
parentc83b8787a5f8137f520f9af62499782e2dbd333b (diff)
python-setuptools,python-pip: Set pip cache dir, disable version check
This adds --cache-dir and --disable-pip-version-check options for host pip, when "installing" target setuptools and pip. This also changes the pip command to use $(HOST_PYTHON[3]_PIP) from python[3]-host.mk. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
Diffstat (limited to 'lang/python/python3')
-rw-r--r--lang/python/python3/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/lang/python/python3/Makefile b/lang/python/python3/Makefile
index d151459ed..6ae2add1b 100644
--- a/lang/python/python3/Makefile
+++ b/lang/python/python3/Makefile
@@ -174,7 +174,10 @@ endef
ifdef CONFIG_PACKAGE_python3-setuptools
define Build/Compile/python3-setuptools
- $(STAGING_DIR_HOSTPKG)/bin/pip3 install \
+ $(HOST_PYTHON3_PIP) \
+ --disable-pip-version-check \
+ --cache-dir "$(DL_DIR)/pip-cache" \
+ install \
--ignore-installed \
--root=$(PKG_BUILD_DIR)/install-setuptools --prefix=. \
$(PKG_BUILD_DIR)/Lib/ensurepip/_bundled/setuptools-$(PYTHON3_SETUPTOOLS_VERSION)-py2.py3-none-any.whl
@@ -184,7 +187,10 @@ endif # CONFIG_PACKAGE_python3-setuptools
ifdef CONFIG_PACKAGE_python3-pip
define Build/Compile/python3-pip
- $(STAGING_DIR_HOSTPKG)/bin/pip3 install \
+ $(HOST_PYTHON3_PIP) \
+ --disable-pip-version-check \
+ --cache-dir "$(DL_DIR)/pip-cache" \
+ install \
--ignore-installed \
--root=$(PKG_BUILD_DIR)/install-pip --prefix=. \
$(PKG_BUILD_DIR)/Lib/ensurepip/_bundled/pip-$(PYTHON3_PIP_VERSION)-py2.py3-none-any.whl