Skip to content

Duplicate metadata is reflected by package #101

Closed

Description

@jaraco

In GitLab by @jaraco on Nov 30, 2019, 20:53

In this comment, @RonnyPfannschmidt reported that when the metadata for a package appears more than once in sys.path, that metadata gets emitted for each instance in which it appears.

I'm not sure what's to be done in this case, but I wanted to split it out as a separate issue from the issue caused by the presence of both importlib.metadata (Python 3.8) and its backport (importlib_metadata), which was addressed in #91.

Ronny, can you describe more about the conditions that cause this behavior to happen? What distro, how did you create the virtualenv? Would you consider supplying a Docker script that builds up such an environment?

Activity

  1. jaraco commented on Oct 22, 2020

    @jaraco
    MemberAuthor

    In GitLab by @jaraco on Nov 30, 2019, 20:54

    FTR, when a package appears both in . and lib, I think those are legitimately separate Distributions and should be expected to appear twice.

  2. jaraco commented on Oct 22, 2020

    @jaraco
    MemberAuthor

    In GitLab by @ronny-pfannschmidt on Dec 1, 2019, 10:58

    this was about having multiple relative/absolute paths in sys.path that would in turn allow multiple ways to get to the same absolute path of a distribution

    i will try to replicate this once i fetch the situation at work

  3. jaraco commented on Jan 10, 2021

    @jaraco
    MemberAuthor

    Closing as this issue has been stale for some time, but happy to revisit as needed.

  4. added 2 commits that reference this issue on Dec 21, 2023
    8858e74
    6b7e858
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