diff --git a/bin/compile b/bin/compile index 4cefb63..a88a653 100755 --- a/bin/compile +++ b/bin/compile @@ -51,10 +51,10 @@ if [ -f "lib/python2.7" ]; then fi # Copy artifacts out of cache if exists. -# mkdir -p $CACHE_DIR -# for dir in $VIRTUALENV_DIRS; do -# cp -R $CACHE_DIR/$dir . &> /dev/null || true -# done +mkdir -p $CACHE_DIR +for dir in $VIRTUALENV_DIRS; do + cp -R $CACHE_DIR/$dir . &> /dev/null || true +done # Create virtualenv. Rebuild if corrupt. set +e @@ -62,9 +62,6 @@ set +e echo "-----> Preparing Python interpreter ($PYTHON_VERSION)" # PYTHON_EXE=$($BIN_DIR/python-build install $PYTHON_VERSION --quiet) -export BUILD_DIR -source $BIN_DIR/python-build - PYTHON_EXE=$BUILD_DIR/.vendor/python/bin/python echo "-----> Preparing virtualenv version $(virtualenv --version)"