Skip to content

Commit

Permalink
CI: Install Python setuptools
Browse files Browse the repository at this point in the history
This is a workaround for Python 3.12+ with old node-gyp
  • Loading branch information
DeeDeeG committed Dec 2, 2023
1 parent 43b7425 commit 8a7e226
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: '16'
- name: Install Python setuptools
# This is needed for Python 3.12+, since many versions of node-gyp
# are incompatible with Python 3.12+, which no-longer ships 'distutils'
# out of the box. 'setuptools' package provides 'distutils'.
run: python3 -m pip install setuptools
- name: Install windows-build-tools
if: ${{ matrix.os == 'windows-latest' }}
run: npm config set msvs_version 2019
Expand Down

0 comments on commit 8a7e226

Please sign in to comment.