mirror of
https://github.com/openwrt/packages.git
synced 2025-12-19 17:11:21 +00:00
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>
This commit is contained in:
@@ -120,8 +120,8 @@ PYTHON3_PKG_SETUP_ARGS ?= --single-version-externally-managed
|
||||
PYTHON3_PKG_SETUP_VARS ?=
|
||||
|
||||
define Py3Build/Compile/Default
|
||||
$(foreach pkg,$(HOST_PYTHON3_PACKAGE_BUILD_DEPENDS),
|
||||
$(call host_python3_pip_install_host,$(pkg))
|
||||
$(if $(HOST_PYTHON3_PACKAGE_BUILD_DEPENDS),
|
||||
$(call Build/Compile/HostPy3PipInstall,$(HOST_PYTHON3_PACKAGE_BUILD_DEPENDS))
|
||||
)
|
||||
$(call Build/Compile/Py3Mod, \
|
||||
$(PYTHON3_PKG_SETUP_DIR), \
|
||||
|
||||
Reference in New Issue
Block a user