python,python3: remove .egginfo directories
authorAlexandru Ardelean <ardeleanalex@gmail.com>
Tue, 4 Jul 2017 19:27:45 +0000 (22:27 +0300)
committerAlexandru Ardelean <ardeleanalex@gmail.com>
Fri, 7 Jul 2017 15:07:10 +0000 (18:07 +0300)
They don't seem needed, and makes packages a bit smaller

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
lang/python/python/files/python-package-install.sh
lang/python/python3/files/python3-package-install.sh

index a08f8b4153e6e0f97502149adc33a77fc01a0227..022cf8a35c049dc49356395101befdfab4079e5e 100644 (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
index cc100518924c1dd8848ea1ed02592bad6a0c3d68..ae5e172807107352373998e6f2ed012f7e30cc3a 100644 (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