From 6455017c8cbb044d010c11ec6eafc127bb94092c Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Fri, 10 Jul 2026 13:37:12 -0700 Subject: [PATCH] [CI] Add `--only-binary :all:` when running pip This ensures pip doesn't try to build anything using the local compiler. --- .circleci/config.yml | 4 +++- .github/workflows/ci.yml | 2 +- .github/workflows/rebaseline-tests.yml | 2 +- .github/workflows/update-emsdk.yml | 2 +- .github/workflows/update-website.yml | 2 +- 5 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 3ee95245a381a..342c129ae24e8 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -64,7 +64,9 @@ commands: steps: - run: name: pip install - command: << parameters.python >> -m pip install -r requirements-dev.txt + # The --only-binary :all: flag tells python not to ever build any + # extensio code locally, and instead only download pre-built wheels. + command: "<< parameters.python >> -m pip install --only-binary :all: -r requirements-dev.txt" install-rust: steps: - run: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1fe44de52d93a..4283564782d82 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -53,7 +53,7 @@ jobs: run: | which python3 python3 --version - python3 -m pip install -r requirements-dev.txt + python3 -m pip install --only-binary :all: -r requirements-dev.txt - name: Check codesize expectations run: | ./bootstrap.py diff --git a/.github/workflows/rebaseline-tests.yml b/.github/workflows/rebaseline-tests.yml index 94dbdf21079ca..dcb8b86345622 100644 --- a/.github/workflows/rebaseline-tests.yml +++ b/.github/workflows/rebaseline-tests.yml @@ -36,7 +36,7 @@ jobs: run: | which python3 python3 --version - python3 -m pip install -r requirements-dev.txt + python3 -m pip install --only-binary :all: -r requirements-dev.txt - name: Rebaseline tests env: REF_NAME: ${{ github.ref_name }} diff --git a/.github/workflows/update-emsdk.yml b/.github/workflows/update-emsdk.yml index d86575d91e59f..fe604e402ac0b 100644 --- a/.github/workflows/update-emsdk.yml +++ b/.github/workflows/update-emsdk.yml @@ -33,7 +33,7 @@ jobs: run: | which python3 python3 --version - python3 -m pip install -r requirements-dev.txt + python3 -m pip install --only-binary :all: -r requirements-dev.txt - name: Update emsdk and rebaseline tests env: REF_NAME: ${{ github.ref_name }} diff --git a/.github/workflows/update-website.yml b/.github/workflows/update-website.yml index 3882d3136a474..44ff6ee8334e7 100644 --- a/.github/workflows/update-website.yml +++ b/.github/workflows/update-website.yml @@ -31,7 +31,7 @@ jobs: run: | which python3 python3 --version - python3 -m pip install -r requirements-dev.txt + python3 -m pip install --only-binary :all: -r requirements-dev.txt - name: Update docs run: | set -o errexit