From da2ea645c588c1f5e34a0253aa37a5bb7019edc1 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Tue, 28 Aug 2018 19:39:46 -0500 Subject: [PATCH] add clean up code to miniconda build --- build-py-project-within-miniconda.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/build-py-project-within-miniconda.sh b/build-py-project-within-miniconda.sh index 2934dcb..cb9ae40 100644 --- a/build-py-project-within-miniconda.sh +++ b/build-py-project-within-miniconda.sh @@ -12,6 +12,22 @@ echo "git status:" git status -s echo "-----------------------------------------------" +# {{{ clean up + +rm -Rf .env +rm -Rf build +find . -name '*.pyc' -delete + +rm -Rf env +git clean -fdx -e siteconf.py -e boost-numeric-bindings $GIT_CLEAN_EXCLUDE + +if test `find "siteconf.py" -mmin +1`; then + echo "siteconf.py older than a minute, assumed stale, deleted" + rm -f siteconf.py +fi + +# }}} + if [ "$(uname)" = "Darwin" ]; then PLATFORM=MacOSX else -- GitLab