Light Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Refactor and fix package assembly for installed wheels#4171

Merged
AyanSinhaMahapatra merged 3 commits intodevelopfrom
fix-pypi-installed-wheel-assembly
Mar 5, 2025
Merged

Refactor and fix package assembly for installed wheels#4171
AyanSinhaMahapatra merged 3 commits intodevelopfrom
fix-pypi-installed-wheel-assembly

Conversation

Copy link
Member

AyanSinhaMahapatra commented Feb 28, 2025 *
edited
Loading

Reference: #4167

Tasks

  • Reviewed contribution guidelines
  • PR is descriptively titled and links the original issue above
  • Tests pass -- look for a green checkbox a few minutes after opening your PR
    Run tests locally to check for errors.
  • Commits are in uniquely-named feature branch and has no merge conflicts
  • Updated documentation pages (if applicable)
  • Updated CHANGELOG.rst (if applicable)

Reference: #4167
Signed-off-by: Ayan Sinha Mahapatra
AyanSinhaMahapatra added a commit to aboutcode-org/scancode.io that referenced this pull request Feb 28, 2025
AyanSinhaMahapatra requested review from JonoYang and pombredanne February 28, 2025 22:18
pombredanne requested changes Mar 3, 2025
Copy link
Member

pombredanne left a comment

Choose a reason for hiding this comment

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

Thanks. Just a few nits for your consideration, and this is good to merge,

AyanSinhaMahapatra requested a review from pombredanne March 4, 2025 10:47
Copy link
Member Author

AyanSinhaMahapatra commented Mar 4, 2025

CI for python 3.10 on ubuntu22 is failing pretty consistently with python/cpython#83085 which is not related to changes. Ready to review again

AyanSinhaMahapatra force-pushed the fix-pypi-installed-wheel-assembly branch from 4262dc6 to c4f78b4 Compare March 4, 2025 11:01
pombredanne requested changes Mar 4, 2025
Copy link
Member

pombredanne left a comment

Choose a reason for hiding this comment

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

After all, checking for "site-packages" dir was a mistaken suggestion!

AyanSinhaMahapatra force-pushed the fix-pypi-installed-wheel-assembly branch 2 times, most recently from cbc2670 to 92b7dae Compare March 4, 2025 15:27
AyanSinhaMahapatra requested a review from pombredanne March 4, 2025 15:27
Signed-off-by: Ayan Sinha Mahapatra
AyanSinhaMahapatra force-pushed the fix-pypi-installed-wheel-assembly branch from 4e567d8 to 0bd356c Compare March 5, 2025 08:32
Reference: #4174
Signed-off-by: Ayan Sinha Mahapatra
pombredanne approved these changes Mar 5, 2025
Copy link
Member

pombredanne left a comment

Choose a reason for hiding this comment

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

Go! Thanks

click-8.0.4.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
click-8.0.4.dist-info/top_level.txt,sha256=J1ZQogalYS4pphY_lPECoNMfw0HzTSrZglC4Yfwo4xA,6
click/__init__.py,sha256=bOKrvMqmR9rN07vN_ycyrdF-EcTCl-EmuAjq-Fp4yPM,3243
click/__pycache__/__init__.cpython-36.pyc,,
Copy link
Member

pombredanne Mar 5, 2025

Choose a reason for hiding this comment

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

note that these are added at installation time to RECORD... removing all these means your RECORD file is closer to that of RECORD in a .whl archive and not like the one from a site-packages installed wheel but I guess this is OK since you have a pip example of an as-installed wheel below

AyanSinhaMahapatra merged commit 28988ab into develop Mar 5, 2025
40 checks passed
AyanSinhaMahapatra added a commit to aboutcode-org/scancode.io that referenced this pull request Mar 6, 2025
This fixes pypi installed wheel package assembly by adding the changes from aboutcode-org/scancode-toolkit#4171

Reference: aboutcode-org/scancode-toolkit#4167
Signed-off-by: Ayan Sinha Mahapatra
pombredanne deleted the fix-pypi-installed-wheel-assembly branch April 23, 2025 06:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

pombredanne pombredanne approved these changes

JonoYang Awaiting requested review from JonoYang

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Package assembly is extremely slow for PythonInstalledWheelMetadataFile handler with many package resources

2 participants