From 8a7e226aa8006e2cfbb59a24042738c8a35e936e Mon Sep 17 00:00:00 2001 From: DeeDeeG Date: Sat, 2 Dec 2023 14:59:41 -0500 Subject: [PATCH] CI: Install Python setuptools This is a workaround for Python 3.12+ with old node-gyp --- .github/workflows/ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0b06bb510..f9d945f68 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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