Skip to content

fix native wheel platform tag - #700

Open
rahulsiiitm wants to merge 2 commits into
commaai:masterfrom
rahulsiiitm:agent/fix-native-wheel-tag
Open

fix native wheel platform tag#700
rahulsiiitm wants to merge 2 commits into
commaai:masterfrom
rahulsiiitm:agent/fix-native-wheel-tag

Conversation

@rahulsiiitm

Copy link
Copy Markdown

Summary

  • declare setuptools as the PEP 517 build backend
  • mark the distribution as containing native extensions so wheels receive a platform-specific tag
  • build and install the wheel in CI, including an explicit guard against none-any wheels

Why

msgq packages pre-built Cython shared objects. Without telling setuptools that the distribution contains native extensions, the generated wheel can be tagged as platform-independent even though its binaries only work on the OS and architecture that built them.

Test plan

  • pip wheel . --no-deps --no-build-isolation produces msgq-0.0.1-cp312-cp312-win_amd64.whl
  • bash -n test.sh setup.sh
  • git diff --check
  • CI builds and imports the installed wheel on Ubuntu and macOS

Related to #619.

@rahulsiiitm
rahulsiiitm marked this pull request as ready for review August 7, 2026 05:36
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