Closed rgommers closed 1 month ago
Thanks @dnicolodi. Adopted your suggestions for error messages.
In that I also check the return code of
meson --version
and raise an error with what was printed on the standard error if the return code is not zero.
If you have that already, do you want to put that on top of this PR (either push a commit or do in a follow-up PR)?
Sure, I will do that later today.
This is a follow-up to gh-495.
There are several ways that meson may go missing:
MESON
environmnent variable is used by the user and is misspelledThe git submodule case was ending with:
and after this ends with:
If the executable is missing, the build ended with a very long traceback. Changing
FileNotFoundError
toConfigError
elides the traceback and clearly reports that the executable wasn't found. Easy to verify with any package with:Closes https://github.com/numpy/numpy/issues/26397