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:
Alexandru Ardelean 2017-07-04 22:27:45 +03:00
parent 8db8c927ed
commit 4333d1dcbf
2 changed files with 6 additions and 0 deletions

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

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