Browse Source

python,python3: remove .egginfo directories

They don't seem needed, and makes packages a bit smaller

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
lilik-openwrt-22.03
Alexandru Ardelean 8 years ago
parent
commit
4333d1dcbf
2 changed files with 6 additions and 0 deletions
  1. +3
    -0
      lang/python/python/files/python-package-install.sh
  2. +3
    -0
      lang/python/python3/files/python3-package-install.sh

+ 3
- 0
lang/python/python/files/python-package-install.sh View File

@ -45,6 +45,9 @@ process_filespec "$src_dir" "$dst_dir" "$filespec" || {
exit 1
}
# delete egg-info directories
find "$dst_dir" -name "*.egg-info" | xargs rm -rf
if [ "$mode" == "sources" ] ; then
# Copy only python source files
find $dst_dir -not -name "*\.py" | xargs rm -f


+ 3
- 0
lang/python/python3/files/python3-package-install.sh View File

@ -45,6 +45,9 @@ process_filespec "$src_dir" "$dst_dir" "$filespec" || {
exit 1
}
# delete egg-info directories
find "$dst_dir" -name "*.egg-info" | xargs rm -rf
if [ "$mode" == "sources" ] ; then
# Copy only python source files
find $dst_dir -not -name "*\.py" | xargs rm -f


Loading…
Cancel
Save