From ae80ddc7ab1486a2e4788a8bd4b9c1643ce29c29 Mon Sep 17 00:00:00 2001 From: Jeffery To Date: Wed, 29 May 2019 21:45:16 +0800 Subject: python,python3: Update host pip[3] install functions * Add --cache-dir option to set the pip cache to a directory in $(DL_DIR), instead of pip's default (build user's ~/.cache/pip), fixes #9066 * Add --disable-pip-version-check option, since the version check only prints a message saying a new version is available * Combine host_python_pip_install and host_python_pip_install_host into Build/Compile/HostPy[3]PipInstall * Remove --root and --prefix options, since this function is only used to install packages to host Python's default site-packages directory (setting these may serve to confuse pip) * Pass all of $(HOST_PYTHON[3]_PACKAGE_BUILD_DEPENDS) to the function, since pip can handle multiple arguments/packages Signed-off-by: Jeffery To --- lang/python/python-package.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lang/python/python-package.mk') diff --git a/lang/python/python-package.mk b/lang/python/python-package.mk index c594f614e..dd3fdf75a 100644 --- a/lang/python/python-package.mk +++ b/lang/python/python-package.mk @@ -121,8 +121,8 @@ PYTHON_PKG_SETUP_ARGS ?= --single-version-externally-managed PYTHON_PKG_SETUP_VARS ?= define PyBuild/Compile/Default - $(foreach pkg,$(HOST_PYTHON_PACKAGE_BUILD_DEPENDS), - $(call host_python_pip_install_host,$(pkg)) + $(if $(HOST_PYTHON_PACKAGE_BUILD_DEPENDS), + $(call Build/Compile/HostPyPipInstall,$(HOST_PYTHON_PACKAGE_BUILD_DEPENDS)) ) $(call Build/Compile/PyMod, \ $(PYTHON_PKG_SETUP_DIR), \ -- cgit