Skip to content

Commit 5bc987a

Browse files
committed
Improve cleaning on POSIX
Signed-off-by: Philippe Ombredanne <[email protected]>
1 parent 49bfd37 commit 5bc987a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

configure

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ DEV_REQUIREMENTS="--editable .[testing] --constraint requirements.txt --constrai
3535
VIRTUALENV_DIR=venv
3636

3737
# Cleanable files and directories to delete with the --clean option
38-
CLEANABLE="build dist venv .cache .eggs"
38+
CLEANABLE="build dist venv .cache .eggs *.egg-info docs/_build/ pip-selfcheck.json"
3939

4040
# extra arguments passed to pip
4141
PIP_EXTRA_ARGS=" "
@@ -167,6 +167,7 @@ clean() {
167167
for cln in $CLEANABLE;
168168
do rm -rf "${CFG_ROOT_DIR:?}/${cln:?}";
169169
done
170+
find . -type f -name '*.py[co]' -delete -o -type d -name __pycache__ -delete
170171
set +e
171172
exit
172173
}

0 commit comments

Comments
 (0)