Skip to content

an open-source alternative to the dots, bots and muses of the world, run an office of claude code/codex like agents on your laptop, sandboxes or anywhere, uses your existing subscriptions

ci: pin Python 3.11 + setuptools so node-gyp finds distutils

Chaitanya Girif155111fae7c
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index dbfb5189..2180d2e8 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -34,6 +34,16 @@ jobs:
node-version: 20
cache: npm
+ # node-gyp (used to rebuild native node-pty) imports distutils, which was
+ # removed in Python 3.12. Pin 3.11 and install setuptools so the distutils
+ # shim is available across all runners.
+ - uses: actions/setup-python@v5
+ with:
+ python-version: "3.11"
+
+ - name: Provide distutils for node-gyp
+ run: python -m pip install --upgrade setuptools
+
- name: Install dependencies
run: npm ci