heroku / heroku-buildpack-python

Heroku's buildpack for Python applications.
https://www.heroku.com/python
MIT License
974 stars 1.84k forks source link

Source repos for editable Pipenv VCS installs are not cached between builds #1527

Closed edmorley closed 8 months ago

edmorley commented 8 months ago

Currently when using Pipenv, the source repository for editable VCS installs defaults to being cloned into the app directory, at /app/src/<repo>.

This directory isn't cached, meaning for repeat builds the repo has to be cloned again from scratch.

In comparison, when using Pip instead of Pipenv, we force the source directory to be created at /app/.heroku/src/<repo> instead, by passing --src when invoking pip install.

We should do the same thing for Pipenv, to speed up builds.

GUS-W-14764812.