Commit 282f2b16 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Sync cleanup bits in Conda and non-conda build scripts

parent 8f6f0878
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -13,6 +13,8 @@ echo "-----------------------------------------------"

# {{{ clean up

# keep this consistent in build-py-project.sh and build-py-project-within-miniconda.sh

rm -Rf .env
rm -Rf build
find . -name '*.pyc' -delete
@@ -21,14 +23,22 @@ rm -Rf env
git clean -fdx \
  -e siteconf.py \
  -e boost-numeric-bindings \
  -e '.pylintrc.yml' \
  -e 'prepare-and-run-*.sh' \
  -e 'run-*.py' \
  -e '.test-*.yml' \
  $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 [[ "$NO_SUBMODULES" = "" ]]; then
  git submodule update --init --recursive
fi

# }}}

if [ "$(uname)" = "Darwin" ]; then
+6 −3
Original line number Diff line number Diff line
@@ -11,6 +11,8 @@ echo "-----------------------------------------------"

# {{{ clean up

# keep this consistent in build-py-project.sh and build-py-project-within-miniconda.sh

rm -Rf .env
rm -Rf build
find . -name '*.pyc' -delete
@@ -22,20 +24,21 @@ git clean -fdx \
  -e '.pylintrc.yml' \
  -e 'prepare-and-run-*.sh' \
  -e 'run-*.py' \
  -e '.test-*.yml' \
  $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 [[ "$NO_SUBMODULES" = "" ]]; then
  git submodule update --init --recursive
fi

# }}}

# {{{ virtualenv

VENV_VERSION="virtualenv-15.1.0"