python,python3: allow python packages to override Package/<pkg>/install rule
authorAlexandru Ardelean <ardeleanalex@gmail.com>
Fri, 19 May 2017 14:16:38 +0000 (17:16 +0300)
committerAlexandru Ardelean <ardeleanalex@gmail.com>
Fri, 19 May 2017 14:16:39 +0000 (17:16 +0300)
Python packages try to enforce their own.
For some cases this may not be desired.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
lang/python/python/files/python-package.mk
lang/python/python3/files/python3-package.mk

index e9ec85c6f2ca84c545b11168f23e8c75ee8b1109..0805fc9c2c70b13758b140e36b2993cf6a7c6c81 100644 (file)
@@ -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)
index a28689aba689b4c74c621c33fc38d48071d94078..36a030c02b02e30504b0e62ba7f69758a2d82b23 100644 (file)
@@ -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)