Skip to content

Conversation

@jacobkahn
Copy link
Member

See title. Using FindPython3 in CMake >= 3.16 requires using PYTHON3_EXECUTABLE as the relevant flag specifying the interpreter path. This ensures that headers and modules are found in the proper subtree by CMake such that bindings are linked against the correct version of Python. Current Wheel builds link against totally spurious versions.

Test plan: CI + CIBW, ensuring that the correct CIBW version of Python is what CMake finds at wheel build time.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Feb 20, 2023
@jacobkahn jacobkahn marked this pull request as ready for review February 20, 2023 04:17
@facebook-github-bot
Copy link

@jacobkahn has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link

@jacobkahn merged this pull request in 07e5673.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants