From 984fb135dc0baa822f8031f1c639b1fd953a6291 Mon Sep 17 00:00:00 2001 From: Asher Date: Thu, 16 Nov 2023 10:10:36 -0900 Subject: [PATCH] Fix node-gyp failure on macOS (#6537) --- .github/workflows/release.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 5fea41484..f64b4235f 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -216,6 +216,13 @@ jobs: curl -sSfL https://github.com/goreleaser/nfpm/releases/download/v2.3.1/nfpm_2.3.1_`uname -s`_`uname -m`.tar.gz | tar -C ~/.local/bin -zxv nfpm echo "$HOME/.local/bin" >> $GITHUB_PATH + # The version of node-gyp we use depends on distutils but it was removed + # in Python 3.12. It seems to be fixed in the latest node-gyp so when we + # next update Node we can probably remove this. For now, install + # setuptools since it contains distutils. + - name: Install Python utilities + run: python3 -m pip install setuptools + - name: Download npm package uses: actions/download-artifact@v3 with: