Skip to content

Hosted and vendored modes cannot deliver a patched release that publishes only platform wheels: no way to consume one patched wheel per platform tag #2195

Open

Description

Summary

A PyPI release that publishes only platform wheels cannot be delivered patched in hosted or vendored mode:

  • hosted withholds the redirect with redirect_pypi_platform_wheel (crates/socket-patch-core/src/patch/redirect/mod.rs:753);
  • vendored pins the lock to one platform and reports vendor_platform_locked (crates/socket-patch-core/src/vendor/pypi.rs:2139).

Both behaviours are correct for a single patched wheel (#701, #932 and #1048 fixed the silent single-platform pin). The gap is that there is no way to consume a SET of patched wheels for one release.

Why this matters

Packages with compiled extensions often publish no universal wheel at all (pillow: 87 files in 12.3.0, none -none-any). When the patch service can provide a patched wheel for each platform tag of the release, a cross-platform lock entry could list all of them, the way the upstream lock entry does.

Suggested direction

Let a hosted or vendored PyPI reference carry one patched wheel per upstream wheel of the release (same tags, own hashes) and rewrite the lock entry to that full set. Withhold, as today, when the set does not cover every wheel the lock entry lists.

Activity

  1. added
    enhancement
    pm:pip
    on Nov 22, 2026
  2. mikolalysenko commented on Dec 1, 2026

    @mikolalysenko
    Collaborator

    [agent] Looked at what this needs. Not started: it should follow #2273, and it needs a matching change in Socket's backend.

    Where things stand (checked 2026-12-01)

    Needs a matching change in Socket's backend

    • A patched build for each platform wheel of a release, one record per upstream wheel.

    CLI, once those exist

    This is the PyPI counterpart of #2273 and changes the same redirect code (#2273 touches about 3,200 lines of it), so I would build it on top of #2273 once that lands and reuse its rules for partial coverage.

    The agent-mode half, picking the record of the wheel that is installed, is #2194; the fix is in #2409.


    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent:triagedenhancementpm:pippriority:p1

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions