Skip to content

Commit

Permalink
Use Python 3.11 on MacOS
Browse files Browse the repository at this point in the history
Pigweed currently doesn't support Python 3.12. Use Python 3.11 by
default.
  • Loading branch information
agners committed Apr 19, 2024
1 parent 6949dcb commit 415aa59
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,18 @@ jobs:
echo "Applying ${patch}"
patch -p1 < $patch
done
# Make Python 3.11 active
ln -sf ../../../Library/Frameworks/Python.framework/Versions/3.11/bin/2to3 /usr/local/bin/2to3
ln -sf ../../../Library/Frameworks/Python.framework/Versions/3.11/bin/idle3 /usr/local/bin/idle3
ln -sf ../../../Library/Frameworks/Python.framework/Versions/3.11/bin/pip3 /usr/local/bin/pip3
ln -sf ../../../Library/Frameworks/Python.framework/Versions/3.11/bin/pydoc3 /usr/local/bin/pydoc3
ln -sf ../../../Library/Frameworks/Python.framework/Versions/3.11/bin/python3 /usr/local/bin/python3
ln -sf ../../../Library/Frameworks/Python.framework/Versions/3.11/bin/python3-config /usr/local/bin/python3-config
ln -sf ../../../Library/Frameworks/Python.framework/Versions/3.11/bin/python3-intel64 /usr/local/bin/python3-intel64
- name: Bootstrap
working-directory: ./connectedhomeip/
run: bash scripts/bootstrap.sh -p all,darwin
run: |
bash scripts/bootstrap.sh -p all,darwin
- name: Setup Build, Run Build and Run Tests
run: |
scripts/build/gn_gen.sh --args=" \
Expand Down

0 comments on commit 415aa59

Please sign in to comment.