mirror of
https://github.com/openwrt/packages.git
synced 2025-12-19 17:11:21 +00:00
python,python3: Add PYTHON[3]_PKG_SETUP_GLOBAL_ARGS
Some packages (PyYAML, https://github.com/openwrt/packages/pull/8482#discussion_r270692276) recognize "global" options to setup.py; these must appear before the "install" command on the command line. This adds PYTHON[3]_PKG_SETUP_GLOBAL_ARGS, which let packages set these global options. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
This commit is contained in:
@@ -115,6 +115,7 @@ define Build/Compile/Py3Mod
|
||||
endef
|
||||
|
||||
PYTHON3_PKG_SETUP_DIR ?=
|
||||
PYTHON3_PKG_SETUP_GLOABL_ARGS ?=
|
||||
PYTHON3_PKG_SETUP_ARGS ?= --single-version-externally-managed
|
||||
PYTHON3_PKG_SETUP_VARS ?=
|
||||
|
||||
@@ -124,6 +125,7 @@ define Py3Build/Compile/Default
|
||||
)
|
||||
$(call Build/Compile/Py3Mod, \
|
||||
$(PYTHON3_PKG_SETUP_DIR), \
|
||||
$(PYTHON3_PKG_SETUP_GLOBAL_ARGS) \
|
||||
install --prefix="/usr" --root="$(PKG_INSTALL_DIR)" \
|
||||
$(PYTHON3_PKG_SETUP_ARGS), \
|
||||
$(PYTHON3_PKG_SETUP_VARS) \
|
||||
|
||||
Reference in New Issue
Block a user