Skip to content

Commit 6a409ea

Browse files
committed
Don't clean within venv
1 parent e544dc4 commit 6a409ea

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Makefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ clean-build: ## remove build artifacts
1818
rm -fr build/
1919
rm -fr dist/
2020
rm -fr .eggs/
21-
find . -name '*.egg-info' -exec rm -fr {} +
22-
find . -name '*.egg' -exec rm -f {} +
21+
find . -path ./venv -prune -name '*.egg-info' -exec rm -fr {} +
22+
find . -path ./venv -prune -name '*.egg' -exec rm -f {} +
2323

2424
clean-pyc: ## remove Python file artifacts
25-
find . -name '*.pyc' -exec rm -f {} +
26-
find . -name '*.pyo' -exec rm -f {} +
27-
find . -name '*~' -exec rm -f {} +
28-
find . -name '__pycache__' -exec rm -fr {} +
25+
find . -path ./venv -prune -name '*.pyc' -exec rm -f {} +
26+
find . -path ./venv -prune -name '*.pyo' -exec rm -f {} +
27+
find . -path ./venv -prune -name '*~' -exec rm -f {} +
28+
find . -path ./venv -prune -name '__pycache__' -exec rm -fr {} +
2929

3030
clean-test: ## remove test and coverage artifacts
3131
rm -fr .tox/

0 commit comments

Comments
 (0)