Browse Source

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>
lilik-openwrt-22.03
Alexandru Ardelean 10 years ago
parent
commit
a1fe8c48aa
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      lang/python3/files/python3-package.mk

+ 1
- 0
lang/python3/files/python3-package.mk View File

@ -32,6 +32,7 @@ define Py3Package
$(call shexport,Py3Package/$(1)/filespec) $(call shexport,Py3Package/$(1)/filespec)
define Package/$(1)/install define Package/$(1)/install
find $(PKG_INSTALL_DIR) -name "*\.pyc" -o -name "*\.pyo" | xargs rm -f
@$(SH_FUNC) getvar $$(call shvar,Py3Package/$(1)/filespec) | ( \ @$(SH_FUNC) getvar $$(call shvar,Py3Package/$(1)/filespec) | ( \
IFS='|'; \ IFS='|'; \
while read fop fspec fperm; do \ while read fop fspec fperm; do \


Loading…
Cancel
Save