-
Notifications
You must be signed in to change notification settings - Fork 253
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
Detect x32 userspace ABI on 64-bit kernel #217
Comments
Is this still relevant? |
I believe so. Lines 419 to 423 in 5984e3b
|
FWIW I think the right way to do this (back when I was working on a fix) was to look at whatever ELF interpreter Python was called with and use that to pick the arch. This would require parsing the Python ELF... |
We are already parsing ELF for both manylinux and musllinux detection so why not :p |
How do we start building this? Parsing the ELF is the easy part, but making sense of the data requires more research. Is there a list of machine and ABI information of common platforms available? |
https://wiki.debian.org/X32Port#Detecting_X32 is the official answer, I think. The unofficial answer I was going for is looking at the path of the ELF interpreter Python was built with. On an x32 system, there should always be x32 (rather than i386) in the path... either it's in /libx32 or symlinks to something with x32 in the filename in /lib. Hacky but probably reliable. |
Originally posted by @chrahunt in pypa/pip#5391 (comment)
This would be a fix related to pypa/pip#4962.
The text was updated successfully, but these errors were encountered: