diff --git a/build.sh b/build.sh index 765a1b5325f3..5fb957c80a6e 100755 --- a/build.sh +++ b/build.sh @@ -168,6 +168,10 @@ if hasArg clean; then rmdir ${bd} || true fi done + + # Cleaning up python artifacts + find ${REPODIR}/python/ | grep -E "(__pycache__|\.pyc|\.pyo|\.so$)" | xargs rm -rf + fi