Skip to content

Commit

Permalink
Improve error message when CMake is not found
Browse files Browse the repository at this point in the history
  • Loading branch information
johningve committed Dec 10, 2024
1 parent 4236a49 commit 9864c14
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,13 @@ def run_process(args, **kwargs):
try:
run_process(("cmake", "--version"))
except Exception as ex:
raise RuntimeError(_make_message_box("!! CMake not found !!")) from ex
raise RuntimeError(
_make_message_box(
"!! CMake not found !!",
"Ensure PIP is updated to the latest version to handle build dependencies automatically,",
"or install CMake and Ninja manually.",
)
) from ex
with tempfile.TemporaryDirectory(prefix="zivid-python-build-") as temp_dir:
with (Path(temp_dir) / "lib.cpp").open("w") as lib_cpp:
# MSVC does not report itself as C++17, on Windoes we have to rely on the CMAKE_CXX_STANDARD test below
Expand Down

0 comments on commit 9864c14

Please sign in to comment.