heroku / buildpacks-python

Heroku's Cloud Native Buildpack for Python applications.
BSD 3-Clause "New" or "Revised" License
27 stars 3 forks source link

Move pip into its own layer #254

Closed edmorley closed 1 month ago

edmorley commented 1 month ago

Currently pip is installed into the same layer as Python, since it is installed into the system site-packages directory.

This is primarily because the user site-packages directory is used for the app dependencies, leaving us few other options as to where to install pip, given that:

pip being in the same layer as Python means that:

However, once we move the app dependencies into a virtual environment in #253 this will free up the user site-packages, meaning we perform a user install of pip, into its own layer.

GUS-W-16616956.