python3: Use PYTHON3_PKG_BUILD to control default Python package build
authorJeffery To <jeffery.to@gmail.com>
Fri, 17 Apr 2020 14:09:32 +0000 (22:09 +0800)
committerJeffery To <jeffery.to@gmail.com>
Sat, 18 Apr 2020 17:56:23 +0000 (01:56 +0800)
commit9636f6f4477c228e0b3c23f4082b53ab7c61f3ce
tree73d8cd162517afb5fe79e8c924876ed1b7a1f9b6
parent58719a3c4bd75479f992982bef3b77fef8310726
python3: Use PYTHON3_PKG_BUILD to control default Python package build

This replaces the use of BUILD_VARIANT with PYTHON3_PKG_BUILD to opt
in/out of the default Python package build recipe (Py3Build/Compile).

PYTHON3_PKG_BUILD defaults to true (1), i.e. if a package includes
python3-package.mk, then by default it will set the package's
Build/Compile to Py3Build/Compile.

If PYTHON3_PKG_BUILD is set to 0 before python3-package.mk is included,
then Build/Compile will not be modified.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
lang/python/python3-package.mk