Merge "Add pip cache cleanup to pip-and-virtualenv"

This commit is contained in:
Zuul 2018-05-14 09:03:49 +00:00 committed by Gerrit Code Review
commit d79a7aaf01
1 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
#!/bin/bash
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
set -x
fi
set -eu
set -o pipefail
# TODO(johnsom) Fix this when https://github.com/pypa/pip/issues/4685 is
# available.
if [ "${DIB_DISABLE_PIP_CLEANUP:-0}" != "1" ]; then
rm -rf ~/.cache/pip
fi