Skip to content

Conversation

AyanSinhaMahapatra
Copy link
Member

@AyanSinhaMahapatra AyanSinhaMahapatra commented Feb 28, 2025

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 <[email protected]>
AyanSinhaMahapatra added a commit to aboutcode-org/scancode.io that referenced this pull request Feb 28, 2025
Copy link
Member

@pombredanne 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
Copy link
Member Author

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 AyanSinhaMahapatra force-pushed the fix-pypi-installed-wheel-assembly branch from 4262dc6 to c4f78b4 Compare March 4, 2025 11:01
Copy link
Member

@pombredanne 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 AyanSinhaMahapatra force-pushed the fix-pypi-installed-wheel-assembly branch 2 times, most recently from cbc2670 to 92b7dae Compare March 4, 2025 15:27
Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
@AyanSinhaMahapatra 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 <[email protected]>
Copy link
Member

@pombredanne 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

@@ -5,37 +5,4 @@ click-8.0.4.dist-info/RECORD,,
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

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 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 <[email protected]>
@pombredanne 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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

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