From 8db8c927edb277f7ff2c6147530cd28f1e4c5d8c Mon Sep 17 00:00:00 2001 From: Alexandru Ardelean Date: Tue, 4 Jul 2017 20:58:37 +0300 Subject: python,python3: define PyBuild/Compile & Py3Build/Compile Similar to LEDE/OpenWrt's Build/Compile/Default rule, and other similarities like this. This should allow Python packages to define PyBuild/Compile rules to do specific stuff per package. The advantage of using these (over just overriding Build/Compile) is the VARIANT mechanism that is in place to support packaging both for Python & Python3. So, PyBuild/Compile will get picked up for the Python variant build, and Py3Build/Compile will get picked up for the Python3 variant build. Signed-off-by: Alexandru Ardelean --- lang/python/python3/files/python3-package.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lang/python/python3') diff --git a/lang/python/python3/files/python3-package.mk b/lang/python/python3/files/python3-package.mk index 36a030c02..22ee527a1 100644 --- a/lang/python/python3/files/python3-package.mk +++ b/lang/python/python3/files/python3-package.mk @@ -132,8 +132,10 @@ define Py3Build/Compile/Default ) endef +Py3Build/Compile=$(Py3Build/Compile/Default) + ifeq ($(BUILD_VARIANT),python3) define Build/Compile - $(call Py3Build/Compile/Default) + $(call Py3Build/Compile) endef endif # python3 -- cgit