File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -146,13 +146,16 @@ bpwatch stop restore_cache
146146
147147mkdir -p $( dirname $PROFILE_PATH )
148148
149+ # Make the directory for -e pip installations.
150+ mkdir -p /app/.heroku/src
151+
149152if [[ $BUILD_DIR != ' /app' ]]; then
150153 # python expects to reside in /app, so set up symlinks
151154 # we will not remove these later so subsequent buildpacks can still invoke it
152155 ln -s $BUILD_DIR /.heroku/python /app/.heroku/python
153156 ln -s $BUILD_DIR /.heroku/vendor /app/.heroku/vendor
154157 ln -s $BUILD_DIR /.heroku/venv /app/.heroku/venv
155- ln -s $BUILD_DIR /.heroku/src / app/.heroku/src
158+ # NOTE: / app/.heroku/src also exists, but is copied manually later.
156159fi
157160
158161# Install Python.
@@ -199,6 +202,9 @@ set-default-env PYTHONPATH /app/
199202# Install sane-default script for $WEB_CONCURRENCY and $FORWARDED_ALLOW_IPS.
200203cp $ROOT_DIR /vendor/python.gunicorn.sh $GUNICORN_PROFILE_PATH
201204
205+ # Deep copy the directory for -e pip installations
206+ deep-cp /app/.heroku/src $BUILD_DIR /.heroku/src
207+
202208# Experimental post_compile hook.
203209bpwatch start post_compile
204210 source $BIN_DIR /steps/hooks/post_compile
You can’t perform that action at this time.
0 commit comments