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

feat: add GNU_PROPERTY_X86_ISA_1_NEEDED detection #535

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

mayeut
Copy link
Member

@mayeut mayeut commented Feb 2, 2025

ISA extensions usage is not defined by a PEP yet.

This first implementation fails to repair the wheel if the usage of x86-64-v[2-4] is required.

The check can be disabled with --disable-isa-ext-check.

The detection being related to a declaration when building, it will not detect the requirement for binaries where the declaration is missing.

All executables built on a manylinux_2_34 image will be detected as x86-64-v2.

ISA extensions usage is not defined by a PEP yet.

This first implementation fails to repair the wheel if the usage of x86-64-v[2-4] is required.

The check can be disabled with `--disable-isa-ext-check`.

The detection being related to a declaration when building, it will not detect the requirement for binaries where the declaration is missing.

All executables built on a manylinux_2_34  image will be detected as x86-64-v2.
Copy link

codecov bot commented Feb 2, 2025

Codecov Report

Attention: Patch coverage is 89.78328% with 33 lines in your changes missing coverage. Please review.

Project coverage is 91.36%. Comparing base (5276a7b) to head (2a7f4a2).

Files with missing lines Patch % Lines
src/auditwheel/lddtree.py 85.71% 11 Missing and 8 partials ⚠️
src/auditwheel/wheel_abi.py 86.30% 7 Missing and 3 partials ⚠️
src/auditwheel/main_lddtree.py 0.00% 3 Missing ⚠️
src/auditwheel/main_show.py 90.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #535      +/-   ##
==========================================
- Coverage   92.05%   91.36%   -0.69%     
==========================================
  Files          20       22       +2     
  Lines        1321     1540     +219     
  Branches      248      290      +42     
==========================================
+ Hits         1216     1407     +191     
- Misses         65       82      +17     
- Partials       40       51      +11     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mayeut mayeut marked this pull request as draft February 2, 2025 14:55
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.

1 participant