Skip to content

Commit 984fb13

Browse files
authored
Fix node-gyp failure on macOS (#6537)
1 parent 9658969 commit 984fb13

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/release.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,13 @@ jobs:
216216
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
217217
echo "$HOME/.local/bin" >> $GITHUB_PATH
218218
219+
# The version of node-gyp we use depends on distutils but it was removed
220+
# in Python 3.12. It seems to be fixed in the latest node-gyp so when we
221+
# next update Node we can probably remove this. For now, install
222+
# setuptools since it contains distutils.
223+
- name: Install Python utilities
224+
run: python3 -m pip install setuptools
225+
219226
- name: Download npm package
220227
uses: actions/download-artifact@v3
221228
with:

0 commit comments

Comments
 (0)