mirror of
https://github.com/openwrt/packages.git
synced 2025-12-23 21:04:33 +04:00
python: simplify/unify default build rules for python packages
Most python packages use the same build rules & vars. So, adding them in python-package.mk. Also, preparing for using VARIANTs for python/python3 packages. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
This commit is contained in:
@@ -77,4 +77,20 @@ define Build/Compile/HostPyMod
|
||||
$(3))
|
||||
endef
|
||||
|
||||
define HostPy/Compile/Default
|
||||
$(call Build/Compile/HostPyMod,,\
|
||||
install --root="$(HOST_BUILD_PREFIX)" --prefix="" \
|
||||
--single-version-externally-managed \
|
||||
)
|
||||
endef
|
||||
|
||||
ifeq ($(BUILD_VARIANT),python)
|
||||
define Host/Compile
|
||||
$(call HostPy/Compile/Default)
|
||||
endef
|
||||
|
||||
define Host/Install
|
||||
endef
|
||||
endif # python
|
||||
|
||||
endif # __python_host_mk_inc
|
||||
|
||||
Reference in New Issue
Block a user