Skip to content

Explore converting pip (or parts of it) into a zipped package #10612

Closed
@pradyunsg

Description

@pradyunsg

Pulled out of #10462

Where would this be useful

Right now, we have at least two cases where this would be useful:

  • The pip package, in its entirety, is packaged into a zip file and made available to the isolated build environments, to ensure that we're running the exact same copy in the PEP 517 isolated build environment.
  • There are a substantial number of files that get copied when creating a venv with pip, which serves to slow down the creation process of the venv. Switching to a zip'd package would help with speeding that up; albeit at some runtime costs.

What we could do

There's multiple options:

  • A single giant bundle, that is effectively a zipapp.
  • A couple of bundles, one for all our vendored packages and one for our _internal stuff.
  • A bundle for vendored stuff, which would effectively need a redo of our vendoring setup.
  • more?

Why should we not do it?

IDK, this sounds like it will have a lot of churn? Complexity? Potential slowdown of wheel-based installs?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions