From 9ed91cd53a6829599bed26288d520136d7ca08af Mon Sep 17 00:00:00 2001
From: Kenneth Reitz <me@kennethreitz.com>
Date: Wed, 18 Jan 2012 15:41:42 -0500
Subject: [PATCH] don't bootstrap virtualenv every time

---
 bin/compile | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/bin/compile b/bin/compile
index 1bed1300..f3794116 100755
--- a/bin/compile
+++ b/bin/compile
@@ -53,8 +53,11 @@ for dir in $VIRTUALENV_DIRS; do
   cp -R $CACHE_DIR/$dir . &> /dev/null || true
 done
 
-echo "-----> Preparing virtualenv version $(virtualenv --version)"
-virtualenv --distribute --never-download  --prompt=venv . | indent
+# Don't rebuild existing virtualenv.
+if ! [ -f "lib/python2.7" ]; then
+  echo "-----> Preparing virtualenv version $(virtualenv --version)"
+  virtualenv --distribute --never-download  --prompt=venv . | indent
+fi
 
 # Create set-aside .heroku folder.
 mkdir -p .heroku
-- 
GitLab