From 4333d1dcbfd67dde4ca7d08717bc345cc424fbf8 Mon Sep 17 00:00:00 2001 From: Alexandru Ardelean Date: Tue, 4 Jul 2017 22:27:45 +0300 Subject: [PATCH] python,python3: remove .egginfo directories They don't seem needed, and makes packages a bit smaller Signed-off-by: Alexandru Ardelean --- lang/python/python/files/python-package-install.sh | 3 +++ lang/python/python3/files/python3-package-install.sh | 3 +++ 2 files changed, 6 insertions(+) diff --git a/lang/python/python/files/python-package-install.sh b/lang/python/python/files/python-package-install.sh index a08f8b415..022cf8a35 100644 --- a/lang/python/python/files/python-package-install.sh +++ b/lang/python/python/files/python-package-install.sh @@ -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 diff --git a/lang/python/python3/files/python3-package-install.sh b/lang/python/python3/files/python3-package-install.sh index cc1005189..ae5e17280 100644 --- a/lang/python/python3/files/python3-package-install.sh +++ b/lang/python/python3/files/python3-package-install.sh @@ -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