diff --git a/reduce_python.sh b/reduce_python.sh index 76ce36f..e53b9f1 100755 --- a/reduce_python.sh +++ b/reduce_python.sh @@ -1,11 +1,13 @@ #!/bin/bash +. environment.sh + echo "Starting reducing==========" -pushd $BUILDROOT/python/lib/python2.7 +try pushd $BUILDROOT/python/lib/python2.7 find . -iname '*.pyc' | xargs rm find . -iname '*.py' | xargs rm find . -iname 'test_*' | xargs rm -rf rm -rf *test* config lib* wsgiref bsddb curses idlelib hotshot || true -popd +try popd rm -rf pkgconfig || true