Skip to content

Commit 8a7e226

Browse files
committed
CI: Install Python setuptools
This is a workaround for Python 3.12+ with old node-gyp
1 parent 43b7425 commit 8a7e226

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ jobs:
1616
- uses: actions/setup-node@v4
1717
with:
1818
node-version: '16'
19+
- name: Install Python setuptools
20+
# This is needed for Python 3.12+, since many versions of node-gyp
21+
# are incompatible with Python 3.12+, which no-longer ships 'distutils'
22+
# out of the box. 'setuptools' package provides 'distutils'.
23+
run: python3 -m pip install setuptools
1924
- name: Install windows-build-tools
2025
if: ${{ matrix.os == 'windows-latest' }}
2126
run: npm config set msvs_version 2019

0 commit comments

Comments
 (0)