blob: e7de02e5e28089adf2652a41cbced9753c3e7d4e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#!/bin/sh
basedir="$(dirname "$0")"
[ "$(echo "$basedir" | cut -c1)" = '/' ] || basedir="$PWD/$basedir"
base="$basedir/.."
set -e
if ! [ -x "$base/setup.py" ]; then
echo "basedir sanity check failed"
exit 1
fi
cd "$base"
find . \( \
\( -name '__pycache__' \) -o \
\( -name '*.pyo' \) -o \
\( -name '*.pyc' \) -o \
\( -name '*$py.class' \) \
\) -delete
rm -rf doc/api
rm -rf build dist .pybuild *.egg-info
rm -f MANIFEST
rm -f *.html
|