python,python3: allow users to override python args & vars 8273/head
authorAlexandru Ardelean <ardeleanalex@gmail.com>
Tue, 19 Feb 2019 09:00:09 +0000 (11:00 +0200)
committerJeffery To <jeffery.to@gmail.com>
Sat, 23 Feb 2019 09:00:59 +0000 (17:00 +0800)
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>
lang/python/python-package.mk
lang/python/python3-package.mk

index 6fcf58d2801768ce599f326e08e61586de65efc5..9990d5340ae0347313c08a5e15280384026ae477 100644 (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),
index 81013ca83dc84e445c1d003bff16969fa536f544..e52a15233ae466391dbdeef720a87cd6be776058 100644 (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),