Maybe something similar to what I tried to fix with https://github.com/H-uru/libhsplasma/pull/34. Note that by using PythonInterp instead of Python, the FindPython shipped by libhsplasma is circumvented.