diff options
| author | Alexandru Ardelean <ardeleanalex@gmail.com> | 2017-01-04 11:25:47 +0200 |
|---|---|---|
| committer | Alexandru Ardelean <ardeleanalex@gmail.com> | 2017-01-04 15:08:37 +0200 |
| commit | 6d9137048bb8494dd306b54b34134c8302a2cd56 (patch) | |
| tree | bf416f863bba9d18f21f463cff1b6ad64b7add68 /lang/python/files/python-host.mk | |
| parent | bb2f8fa8ed9ea2b4ae8ab0a59ea67c913c8c4d60 (diff) | |
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>
Diffstat (limited to 'lang/python/files/python-host.mk')
| -rw-r--r-- | lang/python/files/python-host.mk | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lang/python/files/python-host.mk b/lang/python/files/python-host.mk index dc0c0c049..7833a0c73 100644 --- a/lang/python/files/python-host.mk +++ b/lang/python/files/python-host.mk @@ -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 |
