From 5700b867eb2a000a3565c3452d812582196d69fb Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Thu, 28 Apr 2022 11:27:56 -0400 Subject: [PATCH] Dependency checks for cmake (req. by emsdk) and libtool (req. by libffi) (#2423) Earlier errors about these should make building smoother for new contributors. --- docs/project/changelog.md | 2 ++ tools/dependency-check.sh | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/docs/project/changelog.md b/docs/project/changelog.md index bbcd9d153..2016ae3ec 100644 --- a/docs/project/changelog.md +++ b/docs/project/changelog.md @@ -26,6 +26,8 @@ substitutions: `pyodide.runPython(code, { globals : some_dict})`; {pr}`2391` +- {{ Bugfix }} The build will error out earlier if `cmake` or `libtool` are not installed. + ### Packages - {{ Enhancement }} Pillow now supports WEBP image format {pr}`2407`. diff --git a/tools/dependency-check.sh b/tools/dependency-check.sh index 8997dcbfa..b972bf385 100755 --- a/tools/dependency-check.sh +++ b/tools/dependency-check.sh @@ -36,6 +36,14 @@ check_shasum() { check_binary_present "shasum" } +check_cmake() { + check_binary_present "cmake" +} + +check_libtool() { + check_binary_present "libtool" +} + check_fortran_dependencies() { check_binary_present "gfortran" check_binary_present "f2c"