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:
parent
8db8c927ed
commit
4333d1dcbf
|
@ -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
|
||||
|
|
|
@ -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…
Reference in New Issue