diff --git a/bin/steps/pipenv b/bin/steps/pipenv
index 51acbb3ae4601730b35bbfb1d15a91f3e81c6301..f1f8e7a3907fc381531d50fa589da927fa16a784 100755
--- a/bin/steps/pipenv
+++ b/bin/steps/pipenv
@@ -31,6 +31,9 @@ if [ ! "$SKIP_PIPENV_INSTALL" ]; then
             # Measure that we're using Pipenv.
             mcount "tool.pipenv"
 
+            # Skip pip install, later.
+            export SKIP_PIP_INSTALL=1
+
             # Set PIP_EXTRA_INDEX_URL
             if [[ -r $ENV_DIR/PIP_EXTRA_INDEX_URL ]]; then
                 PIP_EXTRA_INDEX_URL="$(cat "$ENV_DIR/PIP_EXTRA_INDEX_URL")"
@@ -60,9 +63,6 @@ if [ ! "$SKIP_PIPENV_INSTALL" ]; then
                 /app/.heroku/python/bin/pipenv install --dev --system --deploy 2>&1 | cleanup | indent
             fi
 
-            # Skip pip install, later.
-            export SKIP_PIP_INSTALL=1
-
             # Pip freeze, for compatibility.
             pip freeze > requirements.txt
         fi