diff options
| author | Jeffery To <jeffery.to@gmail.com> | 2019-04-05 16:44:55 +0800 |
|---|---|---|
| committer | Jeffery To <jeffery.to@gmail.com> | 2019-04-05 16:44:55 +0800 |
| commit | 9995fe7732a8ad220476a40fec742c99a01df5e8 (patch) | |
| tree | cc5850b53f6d39e9db94752f0fa08224599d6315 /lang/python/python-package.mk | |
| parent | b8f0b6b07e08649c1c92097087fe97d7640aa614 (diff) | |
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>
Diffstat (limited to 'lang/python/python-package.mk')
| -rw-r--r-- | lang/python/python-package.mk | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lang/python/python-package.mk b/lang/python/python-package.mk index e1196bbb8..c594f614e 100644 --- a/lang/python/python-package.mk +++ b/lang/python/python-package.mk @@ -116,6 +116,7 @@ define Build/Compile/PyMod endef PYTHON_PKG_SETUP_DIR ?= +PYTHON_PKG_SETUP_GLOBAL_ARGS ?= PYTHON_PKG_SETUP_ARGS ?= --single-version-externally-managed PYTHON_PKG_SETUP_VARS ?= @@ -125,6 +126,7 @@ define PyBuild/Compile/Default ) $(call Build/Compile/PyMod, \ $(PYTHON_PKG_SETUP_DIR), \ + $(PYTHON_PKG_SETUP_GLOBAL_ARGS) \ install --prefix="/usr" --root="$(PKG_INSTALL_DIR)" \ $(PYTHON_PKG_SETUP_ARGS), \ $(PYTHON_PKG_SETUP_VARS) \ |
