From b9d88065f519583841602170a0f2827fb5ce02f3 Mon Sep 17 00:00:00 2001 From: Alexandru Ardelean Date: Fri, 19 May 2017 17:16:38 +0300 Subject: [PATCH] python,python3: allow python packages to override Package//install rule Python packages try to enforce their own. For some cases this may not be desired. Signed-off-by: Alexandru Ardelean --- lang/python/python/files/python-package.mk | 2 ++ lang/python/python3/files/python3-package.mk | 2 ++ 2 files changed, 4 insertions(+) diff --git a/lang/python/python/files/python-package.mk b/lang/python/python/files/python-package.mk index e9ec85c6f..0805fc9c2 100644 --- a/lang/python/python/files/python-package.mk +++ b/lang/python/python/files/python-package.mk @@ -61,6 +61,7 @@ define PyPackage endef endif + ifndef Package/$(1)/install $(call shexport,PyPackage/$(1)/filespec) define Package/$(1)/install @@ -85,6 +86,7 @@ define PyPackage define Package/$(1)-src/install $$(call Package/$(1)/install,$$(1),sources) endef + endif # Package/$(1)/install endef $(call include_mk, python-host.mk) diff --git a/lang/python/python3/files/python3-package.mk b/lang/python/python3/files/python3-package.mk index a28689aba..36a030c02 100644 --- a/lang/python/python3/files/python3-package.mk +++ b/lang/python/python3/files/python3-package.mk @@ -61,6 +61,7 @@ define Py3Package endef endif + ifndef Package/$(1)/install $(call shexport,Py3Package/$(1)/filespec) define Package/$(1)/install @@ -85,6 +86,7 @@ define Py3Package define Package/$(1)-src/install $$(call Package/$(1)/install,$$(1),sources) endef + endif # Package/$(1)/install endef $(call include_mk, python3-host.mk)