From 251b7f79601c97554237be31c38f31e1634babe7 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz <me@kennethreitz.org> Date: Sun, 18 Dec 2016 13:26:47 -0500 Subject: [PATCH] copy the -e directory instead of symlinking --- bin/compile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/compile b/bin/compile index 6831872e..baf4292d 100755 --- a/bin/compile +++ b/bin/compile @@ -154,7 +154,7 @@ bpwatch stop restore_cache mkdir -p $(dirname $PROFILE_PATH) # Make the directory for -e pip installations. -mkdir -p /$BUILD_DIR/.heroku/src +mkdir -p /$app/.heroku/src if [[ $BUILD_DIR != '/app' ]]; then # python expects to reside in /app, so set up symlinks @@ -162,7 +162,6 @@ if [[ $BUILD_DIR != '/app' ]]; then ln -s $BUILD_DIR/.heroku/python /app/.heroku/python ln -s $BUILD_DIR/.heroku/vendor /app/.heroku/vendor ln -s $BUILD_DIR/.heroku/venv /app/.heroku/venv - ln -s $BUILD_DIR/.heroku/src /app/.heroku/src fi # Install Python. @@ -209,6 +208,8 @@ set-default-env PYTHONPATH /app/ # Install sane-default script for $WEB_CONCURRENCY and $FORWARDED_ALLOW_IPS. cp $ROOT_DIR/vendor/python.gunicorn.sh $GUNICORN_PROFILE_PATH +# Deep copy the directory for -e pip installations +deep-cp /app/.heroku/src $BUILD_DIR/.heroku/src # Experimental post_compile hook. bpwatch start post_compile -- GitLab