Skip to content

AST-1500 Use correct Python version for pybind11

Maik Nijhuis requested to merge ast-1500-findpython into master

When multiple Python versions are installed, pybind11 may find a different Python version than expected. In my case, it found /usr/bin/python3.6 instead of the python3.10 from my search PATH.

Since EveryBeam now requires CMake 3.15, it shouldn't use the FindPythonInterp and FindPythonLibs CMake functions anymore, which were deprecated in CMake 3.12.

FindPython also finds the expected/correct Python version. When used before including pybind11, pybind11 also uses that Python version.

Edited by Maik Nijhuis

Merge request reports