summaryrefslogtreecommitdiff
path: root/lang/python/files/python-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-17 10:25:43 +0300
commit714b1247b70b8b2c185aa30ae914fd90de826f41 (patch)
tree871439459841ecfd3fabf46b0133bdc4eab3dce9 /lang/python/files/python-package.mk
parent4715296a794bd42c4017594382e0546b6f5988f4 (diff)
python: reduce bloat by removing *.pyo and *.pyc files
Seems that if you add a package folder this would also include the compiled python files which increases fw size. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
Diffstat (limited to 'lang/python/files/python-package.mk')
-rw-r--r--lang/python/files/python-package.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/lang/python/files/python-package.mk b/lang/python/files/python-package.mk
index 0196beeb6..6ac6051fa 100644
--- a/lang/python/files/python-package.mk
+++ b/lang/python/files/python-package.mk
@@ -32,6 +32,7 @@ define PyPackage
$(call shexport,PyPackage/$(1)/filespec)
define Package/$(1)/install
+ find $(PKG_INSTALL_DIR) -name "*\.pyc" -o -name "*\.pyo" | xargs rm -f
@$(SH_FUNC) getvar $$(call shvar,PyPackage/$(1)/filespec) | ( \
IFS='|'; \
while read fop fspec fperm; do \