Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate metadata is reflected by package #101

Closed
jaraco opened this issue Oct 22, 2020 · 3 comments
Closed

Duplicate metadata is reflected by package #101

jaraco opened this issue Oct 22, 2020 · 3 comments

Comments

@jaraco
Copy link
Member

jaraco commented Oct 22, 2020

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?

@jaraco
Copy link
Member Author

jaraco commented Oct 22, 2020

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.

@jaraco
Copy link
Member Author

jaraco commented Oct 22, 2020

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

@jaraco
Copy link
Member Author

jaraco commented Jan 10, 2021

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

@jaraco jaraco closed this as completed Jan 10, 2021
jaraco added a commit that referenced this issue Dec 21, 2023
Declare hidden imports for pyinstaller

Closes #101

See merge request python-devs/importlib_resources!104
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant