fix reduce_python when used in standalone mode

This commit is contained in:
Mathieu Virbel 2011-12-06 15:33:48 +01:00
parent 75cdf0110a
commit 6bcb741ebb

View file

@ -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