From 8be8a8eb6a9ef681a420151c87c7eec2c8cfc9e1 Mon Sep 17 00:00:00 2001 From: Pedram Amini Date: Fri, 23 Jan 2026 12:36:51 -0600 Subject: [PATCH] fix: add Python 3.11 setup for Windows build (distutils removed in 3.12+) --- .github/workflows/release.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f740597a..68c8468d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -112,6 +112,13 @@ jobs: if: matrix.platform == 'win' uses: ilammy/msvc-dev-cmd@v1 + # Windows: Setup Python 3.11 for node-gyp (Python 3.12+ removed distutils) + - name: Setup Python for node-gyp (Windows) + if: matrix.platform == 'win' + uses: actions/setup-python@v5 + with: + python-version: '3.11' + # macOS: Setup Python 3.11 for node-gyp (Python 3.12+ removed distutils) - name: Setup Python for node-gyp if: matrix.platform == 'mac'