Browse Source

python,python3: allow users to override python args & vars

If users want to define these before including python[3]-package.mk, these
vars will be overridden during the include.
So, override these vars if they haven't been defined.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
lilik-openwrt-22.03
Alexandru Ardelean 6 years ago
committed by Jeffery To
parent
commit
9b36b449dc
2 changed files with 4 additions and 4 deletions
  1. +2
    -2
      lang/python/python-package.mk
  2. +2
    -2
      lang/python/python3-package.mk

+ 2
- 2
lang/python/python-package.mk View File

@ -115,8 +115,8 @@ define Build/Compile/PyMod
endef
PYTHON_PKG_SETUP_DIR ?=
PYTHON_PKG_SETUP_ARGS:=--single-version-externally-managed
PYTHON_PKG_SETUP_VARS:=
PYTHON_PKG_SETUP_ARGS ?= --single-version-externally-managed
PYTHON_PKG_SETUP_VARS ?=
define PyBuild/Compile/Default
$(foreach pkg,$(HOST_PYTHON_PACKAGE_BUILD_DEPENDS),


+ 2
- 2
lang/python/python3-package.mk View File

@ -114,8 +114,8 @@ define Build/Compile/Py3Mod
endef
PYTHON3_PKG_SETUP_DIR ?=
PYTHON3_PKG_SETUP_ARGS:=--single-version-externally-managed
PYTHON3_PKG_SETUP_VARS:=
PYTHON3_PKG_SETUP_ARGS ?= --single-version-externally-managed
PYTHON3_PKG_SETUP_VARS ?=
define Py3Build/Compile/Default
$(foreach pkg,$(HOST_PYTHON3_PACKAGE_BUILD_DEPENDS),


Loading…
Cancel
Save