mirror of
https://github.com/openwrt/packages.git
synced 2025-12-19 17:11:21 +00:00
python,python3: remove .egginfo directories
They don't seem needed, and makes packages a bit smaller Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user