File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments