summaryrefslogtreecommitdiff
path: root/lang/python3/files/python3-package.mk
diff options
context:
space:
mode:
authorAlexandru Ardelean <aa@ocedo.com>2014-10-16 08:46:32 +0300
committerAlexandru Ardelean <aa@ocedo.com>2014-10-20 18:04:12 +0300
commita1fe8c48aae5058bbcd18c03194858700c249ef5 (patch)
treee0b4b55310676ffea27fb23c4e4ba97d09363278 /lang/python3/files/python3-package.mk
parent774bb4449407f8033e631b367281faeb123000f4 (diff)
python3: reduce bloat by removing *.pyo and *.pyc files
Seems that if you add a package folder this would also include the compiled python3 files which increases fw size. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
Diffstat (limited to 'lang/python3/files/python3-package.mk')
-rw-r--r--lang/python3/files/python3-package.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/lang/python3/files/python3-package.mk b/lang/python3/files/python3-package.mk
index e85b64819..090d84601 100644
--- a/lang/python3/files/python3-package.mk
+++ b/lang/python3/files/python3-package.mk
@@ -32,6 +32,7 @@ define Py3Package
$(call shexport,Py3Package/$(1)/filespec)
define Package/$(1)/install
+ find $(PKG_INSTALL_DIR) -name "*\.pyc" -o -name "*\.pyo" | xargs rm -f
@$(SH_FUNC) getvar $$(call shvar,Py3Package/$(1)/filespec) | ( \
IFS='|'; \
while read fop fspec fperm; do \