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.
See title. Using
FindPython3
in CMake >= 3.16 requires usingPYTHON3_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.