diff --git a/bin/steps/pipenv b/bin/steps/pipenv index 7f9e3e554a2063466e6ec6b99966648c437c79d4..a274211c3b0cc9d1c4c001a9aaa2da9dac8a952f 100755 --- a/bin/steps/pipenv +++ b/bin/steps/pipenv @@ -9,15 +9,18 @@ set -e if [[ -f Pipfile.lock ]]; then if [[ -f .heroku/python/Pipfile.lock.sha256 ]]; then if [[ $(openssl dgst -sha256 Pipfile.lock) == $(cat .heroku/python/Pipfile.lock.sha256) ]]; then - if [[ ! "$PIPENV_ALWAYS_INSTALL" ]]; then + # Measure that we're using Pipenv. + mcount "tool.pipenv" + + # Don't skip installation of there are git deps. + if ! grep -q 'git' Pipfile.lock; then echo "Skipping installation, as Pipfile.lock hasn't changed since last deploy." | indent - # echo "To disable this functionality, run the following command:" - # echo "" - # echo " $ heroku config:set PIPENV_ALWAYS_INSTALL=1" | indent + mcount "tool.pipenv" export SKIP_PIPENV_INSTALL=1 export SKIP_PIP_INSTALL=1 fi + fi fi fi