Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@houdini91
Copy link
Contributor

@houdini91 houdini91 commented Apr 12, 2022

Suggesting enhancement to the python cataloger.
Catalog package files for legacy egg 'installed-files.txt' metadata.
For example psycopg2 does not have linux wheel so it uses egg, then django uses psycopg2 and so one...

https://github.com/pypa/pip/blob/1cda23bd6bd0066ad557e4f7ca7c670744357b2b/src/pip/_internal/operations/install/legacy.py

Note: It seemed that EGG installed-files.txt and wheel RECORD use paths that are relative to different base dirs.
I added a normalization flow for the installed-fiels.txt to the one used by RECORD.

  • Installed-files.txt - relative to egg Info dir.
  • RECORD - relative to site-packages root dir.

Copy link
Contributor

@kzantow kzantow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @houdini91 -- this PR is looking pretty close but I think we'd like to see some basic tests added, would you be able to do this?

if err == io.EOF {
break
}
if err != nil {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should failure reading the installed-files be a critical error? The caller seems to treat it as critical, but as it wasn't even being done before maybe these should instead be warnings?

@spiffcs
Copy link
Contributor

spiffcs commented Sep 19, 2022

Merged with #1217 - Thanks again for all the help on this one @houdini91!

@spiffcs spiffcs closed this Sep 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants