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

Record target platform in Supported-Platform METADATA field #495

Open
tiran opened this issue Nov 4, 2024 · 0 comments
Open

Record target platform in Supported-Platform METADATA field #495

tiran opened this issue Nov 4, 2024 · 0 comments

Comments

@tiran
Copy link
Collaborator

tiran commented Nov 4, 2024

The Python core metadata specification has a field for supported platforms. We could use the field to store the current platform of a platlib wheel. The information can then be used to detect if a wheel with extension module was compiled for a different platform.

On Linux, the ID and VERSION fields of platform.freedesktop_os_release() can be used to identify the ABI of a platform. AFAIK wheels for macOS have the OS version in the wheel file name.

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

No branches or pull requests

1 participant