File: clean.sh

package info (click to toggle)
python-line-profiler 5.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,256 kB
  • sloc: python: 8,119; sh: 810; ansic: 297; makefile: 14
file content (37 lines) | stat: -rwxr-xr-x 812 bytes parent folder | download | duplicates (2)
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
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
echo "start clean"

rm -rf _skbuild
rm -rf _line_profiler.c
rm -rf *.so
rm -rf line_profiler/_line_profiler.c
rm -rf line_profiler/*.so
rm -rf build
rm -rf line_profiler.egg-info
rm -rf dist
rm -rf mb_work
rm -rf wheelhouse
rm -rf pip-wheel-metadata
rm -rf htmlcov
rm -rf tests/htmlcov
rm -rf CMakeCache.txt
rm -rf CMakeTmp
rm -rf CMakeFiles
rm -rf tests/htmlcov

rm -rf demo_primes*
rm -rf docs/demo.py*
rm -rf docs/script_to_profile.py*
rm -rf tests/complex_example.py.lprof
rm -rf tests/complex_example.py.prof
rm -rf script_to_profile.py*


if [ -f "distutils.errors" ]; then
    rm distutils.errors || echo "skip rm"
fi

CLEAN_PYTHON='find . -regex ".*\(__pycache__\|\.py[co]\)" -delete || find . -iname *.pyc -delete || find . -iname *.pyo -delete'
bash -c "$CLEAN_PYTHON"

echo "finish clean"