Skip to content

Commit a1984cb

Browse files
authored
Update linuxdeploy-plugin-conda.sh
1 parent 33c6722 commit a1984cb

1 file changed

Lines changed: 13 additions & 11 deletions

File tree

linuxdeploy-plugin-conda.sh

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -134,14 +134,16 @@ popd
134134

135135

136136
# remove bloat
137-
pushd "$APPDIR"/usr/conda
138-
rm -rf pkgs
139-
find -type d -iname '__pycache__' -print0 | xargs -0 rm -r
140-
find -type f -iname '*.so*' -print -exec strip '{}' \;
141-
find -type f -iname '*.a' -print -delete
142-
rm -rf lib/cmake/
143-
rm -rf include/
144-
rm -rf share/{gtk-,}doc
145-
rm -rf share/man
146-
rm -rf lib/python?.?/site-packages/{setuptools,pip}
147-
popd
137+
if [ "$CONDA_SKIP_CLEANUP" == "" ]; then
138+
pushd "$APPDIR"/usr/conda
139+
rm -rf pkgs
140+
find -type d -iname '__pycache__' -print0 | xargs -0 rm -r
141+
find -type f -iname '*.so*' -print -exec strip '{}' \;
142+
find -type f -iname '*.a' -print -delete
143+
rm -rf lib/cmake/
144+
rm -rf include/
145+
rm -rf share/{gtk-,}doc
146+
rm -rf share/man
147+
rm -rf lib/python?.?/site-packages/{setuptools,pip}
148+
popd
149+
fi

0 commit comments

Comments
 (0)