Skip to content

Scope pip.override to single version of referenced wheel #2263

@keith

Description

@keith

In our project we pull in the same dependency through multiple pip.parse hubs, and they're used different places in our build graph. We want to apply a patch in 1 of those versions, but not the others. Based on the current API accepting a specific wheel name, I expected this to happen automatically, since at least in our case the wheel name includes the version etc, such that it wouldn't have any conflicts across the other downloads. I was surprised to see the other downloads start warning with RECORD mismatches because the patches are applying there too.

I propose that when using file with pip.override, only the specific matching filename is patched. And instead add a new attribute such as whl_name (mirroring pip.whl_mods) that is a simplified name that would apply to all downloads of this wheel.

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions