From ea63068ca284dcd33c933a8a6f546f6e75a3774e Mon Sep 17 00:00:00 2001 From: Cornelius Roemer Date: Sat, 24 Aug 2024 18:10:29 +0200 Subject: [PATCH] dev(ci): add `--break-system-packages` to `pip install` Partially resolves #8025 Only use break system install on macos Try extra brew install Brew install on mac, pip install on rest Try using windows-2019 instead of latest (2022) Back to original windows --- .github/workflows/nodejs.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 4075379c..76fe9843 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -28,7 +28,12 @@ jobs: with: node-version: ${{ env.NODE_VERSION }} - name: Fix node-gyp and Python - run: python3 -m pip install packaging setuptools --break-system-packages || python3 -m pip install packaging setuptools + run: | + if [[ "$RUNNER_OS" == "macOS" ]]; then + brew install python-setuptools python-packaging + else + python3 -m pip install $EXTRA_ARGS packaging setuptools + fi - name: Get yarn cache directory path id: yarn-cache-dir-path run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT