diff options
| author | Jeffery To <jeffery.to@gmail.com> | 2019-05-29 21:45:16 +0800 |
|---|---|---|
| committer | Jeffery To <jeffery.to@gmail.com> | 2019-05-29 21:45:16 +0800 |
| commit | ae80ddc7ab1486a2e4788a8bd4b9c1643ce29c29 (patch) | |
| tree | 808e38a1b8e65727844c879cb00dcff740d6c69d /lang/python/python3-host.mk | |
| parent | c83b8787a5f8137f520f9af62499782e2dbd333b (diff) | |
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 <jeffery.to@gmail.com>
Diffstat (limited to 'lang/python/python3-host.mk')
| -rw-r--r-- | lang/python/python3-host.mk | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/lang/python/python3-host.mk b/lang/python/python3-host.mk index 71ae09362..403d0d282 100644 --- a/lang/python/python3-host.mk +++ b/lang/python/python3-host.mk @@ -71,16 +71,15 @@ endef # Note: I shamelessly copied this from Yousong's logic (from python-packages); HOST_PYTHON3_PIP:=$(STAGING_DIR_HOSTPKG)/bin/pip$(PYTHON3_VERSION) -define host_python3_pip_install - $(call host_python3_settings) \ - $(HOST_PYTHON3_PIP) install \ - --root=$(1) \ - --prefix=$(2) \ - $(3) -endef -define host_python3_pip_install_host -$(call host_python3_pip_install,$(STAGING_DIR_HOSTPKG),"",$(1)) +# $(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 \ + $(1) endef # $(1) => build subdir |
