From d9e7d8b4052ceebdd91926266357535c5ac12750 Mon Sep 17 00:00:00 2001 From: Daniel Lockyer Date: Tue, 12 Apr 2022 13:39:48 +0100 Subject: [PATCH] Fixed building on MacOS Monterey 12.3 refs https://github.com/nodejs/node-gyp/blob/f5fa6b86fd2847ca8c1996102f43d44f98780c4a/lib/find-python.js refs https://github.com/TryGhost/node-sqlite3/issues/1552 - Monterey 12.3 removed Python 2, so `node-sqlite3` doesn't build because the v3 binary is called `python3` and therefore `python` is missing - `node-gyp` has logic to find the python binary and stores it in the `PYTHON` env variable - we should be able to switch to using that --- deps/sqlite3.gyp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps/sqlite3.gyp b/deps/sqlite3.gyp index 3507403cd..1a64323aa 100755 --- a/deps/sqlite3.gyp +++ b/deps/sqlite3.gyp @@ -60,7 +60,7 @@ 'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/sqlite-autoconf-<@(sqlite_version)/sqlite3.c' ], - 'action': ['