Skip to content

Commit 8199420

Browse files
committed
Use Python 3.11 on MacOS
Pigweed currently doesn't support Python 3.12. Use Python 3.11 by default.
1 parent c258460 commit 8199420

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/build.yaml

+10-1
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,18 @@ jobs:
201201
echo "Applying ${patch}"
202202
patch -p1 < $patch
203203
done
204+
# Make Python 3.11 active
205+
ln -sf ../../../Library/Frameworks/Python.framework/Versions/3.11/bin/2to3 /usr/local/bin/2to3
206+
ln -sf ../../../Library/Frameworks/Python.framework/Versions/3.11/bin/idle3 /usr/local/bin/idle3
207+
ln -sf ../../../Library/Frameworks/Python.framework/Versions/3.11/bin/pip3 /usr/local/bin/pip3
208+
ln -sf ../../../Library/Frameworks/Python.framework/Versions/3.11/bin/pydoc3 /usr/local/bin/pydoc3
209+
ln -sf ../../../Library/Frameworks/Python.framework/Versions/3.11/bin/python3 /usr/local/bin/python3
210+
ln -sf ../../../Library/Frameworks/Python.framework/Versions/3.11/bin/python3-config /usr/local/bin/python3-config
211+
ln -sf ../../../Library/Frameworks/Python.framework/Versions/3.11/bin/python3-intel64 /usr/local/bin/python3-intel64
204212
- name: Bootstrap
205213
working-directory: ./connectedhomeip/
206-
run: bash scripts/bootstrap.sh -p all,darwin
214+
run: |
215+
bash scripts/bootstrap.sh -p all,darwin
207216
- name: Setup Build, Run Build and Run Tests
208217
run: |
209218
scripts/build/gn_gen.sh --args=" \

0 commit comments

Comments
 (0)