CMake: let cmake detect missing Python packages
On a Linux system with the sole Python package 3.9,
$ cmake -DBORNAGAIN_PYTHON_PACKAGE_VERSIONS="3.9"
$ make --trace
results in
[ 42%] MakePythonWheel<py39>: Making the Python wheel...
cd /G/sw/ba/build/python_packages/py39 && /usr/bin/cmake -E make_directory /G/sw/ba/build/python_packages/wheels/py39
cd /G/sw/ba/build/python_packages/py39 && /usr/bin/python3.9 -m build --wheel -n -o /G/sw/ba/build/python_packages/wheels/py39
/usr/bin/python3.9: No module named build
make[2]: *** [Fit/CMakeFiles/BornAgainPythonWheel_py39.dir/build.make:72: Fit/CMakeFiles/BornAgainPythonWheel_py39] Error 1
make[1]: *** [CMakeFiles/Makefile2:1965: Fit/CMakeFiles/BornAgainPythonWheel_py39.dir/all] Error 2
make: *** [Makefile:166: all] Error 2
Edited by Wuttke, Joachim