We'll need to get a more recent version of FindPython, and apply some of the patches found in https://gitlab.kitware.com/vtk/vtk/-/blob/master/CMake/patches/3.23/FindPython/Support.cmake .