Skip to content

Suggest documenting that packages_distributions won't work with editable installs #402

Closed

Description

@layday

As discussed in pypa/packaging-problems#609, PEP 660 editable wheels which are generated by backends other than setuptools will not contain a top_level.txt and with the RECORD only listing e.g. the pth file with an entry to the original package directory, packages_distributions will not be able to reconcile editable packages with their corresponding distributions.

Activity

  1. pfmoore commented on Aug 7, 2022

    @pfmoore
    Member

    A longer term alternative to simply documenting the limitation would be to standardise something equivalent to top_level.txt.

  2. added a commit that references this issue on Aug 25, 2022
  3. added a commit that references this issue on May 2, 2024
    b74765d
  4. Helveg commented on Aug 8, 2024

    @Helveg

    Is there a planned solution for this being tracked anywhere?

  5. jaraco commented on Aug 8, 2024

    @jaraco
    Member

    I'm not aware of one. It would require expanding the standard for editable installs to provide the necessary metadata. There's nothing importlib_metadata can do until that happens. It looks like pypa/packaging-problems#620 already tracks a similar if not identical concern. Feel free to chime in and contribute there.

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions