fix: add Python 3.11 setup for Windows build (distutils removed in 3.12+)

This commit is contained in:
Pedram Amini
2026-01-23 12:36:51 -06:00
parent f87971f680
commit 8be8a8eb6a

View File

@@ -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'