From 9864c14bbd999d6428371f1a2cc1ce08d8387084 Mon Sep 17 00:00:00 2001 From: John Ingve Olsen Date: Tue, 10 Dec 2024 11:22:37 +0100 Subject: [PATCH] Improve error message when CMake is not found --- setup.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 0c2e6a9c..5e0fe6c0 100644 --- a/setup.py +++ b/setup.py @@ -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