python-setuptools,python-pip: Set pip cache dir, disable version check
authorJeffery To <redacted>
Wed, 29 May 2019 14:29:20 +0000 (22:29 +0800)
committerJeffery To <redacted>
Wed, 29 May 2019 14:29:20 +0000 (22:29 +0800)
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 <redacted>
lang/python/python/Makefile
lang/python/python3/Makefile

index 979ccc7714871ebbf58fb8af9c4b2000265c37a0..0654b3f8e09bd2edce96bc2d343846a771736621 100644 (file)
@@ -170,7 +170,10 @@ endef
 
 ifdef CONFIG_PACKAGE_python-setuptools
 define Build/Compile/python-setuptools
-       $(STAGING_DIR_HOSTPKG)/bin/pip install \
+       $(HOST_PYTHON_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-$(PYTHON_SETUPTOOLS_VERSION)-py2.py3-none-any.whl
@@ -180,7 +183,10 @@ endif # CONFIG_PACKAGE_python-setuptools
 
 ifdef CONFIG_PACKAGE_python-pip
 define Build/Compile/python-pip
-       $(STAGING_DIR_HOSTPKG)/bin/pip install \
+       $(HOST_PYTHON_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-$(PYTHON_PIP_VERSION)-py2.py3-none-any.whl
index d151459ed891259131038d2791a5e8d19180a395..6ae2add1b192bcfbac2b9925f625b192d929185e 100644 (file)
@@ -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
git clone https://git.99rst.org/PROJECT