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

Weel name fix parse header #68

Closed
wants to merge 8 commits into from

Conversation

Czaki
Copy link
Contributor

@Czaki Czaki commented Apr 7, 2020

Fixing wheel name with parsing header from python code (based on pypa/wheel#314) and calculate proper platform tag.

  • parsing headers to extract minimal version
  • test of added functions
  • new test for delocate_wheel

@Czaki Czaki force-pushed the weel_name_fix_parse_header branch from 8a3f421 to 1432c28 Compare April 7, 2020 18:55
add test_data to manifest


add test data to package
@Czaki Czaki force-pushed the weel_name_fix_parse_header branch from 05bbea0 to aca51fa Compare April 7, 2020 19:37
delocate/delocating.py Outdated Show resolved Hide resolved

def read_mach_header(lib_file, seek=None):
"""
This funcition parse mach-O header and extract
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
This funcition parse mach-O header and extract
This function parses mach-O header and extracts

- For fat files this implementation looks for maximum number version.
It not check if it is 32 or 64 and do not compare it with currently builded package.
So it is possible to false report higher version that needed.
- All structures signatures are taken form macosx header files.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
- All structures signatures are taken form macosx header files.
- All structure signatures are taken from macosx header files.

@Czaki
Copy link
Contributor Author

Czaki commented Mar 7, 2023

I'm sorry. I lost access to macOS machine during work on this PR a few years ago (currently only have Linux and windows)

I may try to do this, even using macholib, but without any option to test other than GHA. Or maybe someone could provide remote access to macOS machine.

@matthew-brett
Copy link
Owner

Hi @Czaki - you're welcome to log into my machine at home if you want. Can you send your ssh public key to me via email? - matthew.brett at gmail

@Czaki
Copy link
Contributor Author

Czaki commented Mar 7, 2023

I have sent mail.

@HexDecimal
Copy link
Collaborator

Resolved by #198

@HexDecimal HexDecimal closed this Feb 17, 2024
@Czaki Czaki deleted the weel_name_fix_parse_header branch February 17, 2024 08:38
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.

4 participants