Skip to content

Commit d92b1ce

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 6949dcb commit d92b1ce

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/build.yaml

+12-1
Original file line numberDiff line numberDiff line change
@@ -201,11 +201,22 @@ 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+
alias python='python3.11'
216+
bash scripts/bootstrap.sh -p all,darwin
207217
- name: Setup Build, Run Build and Run Tests
208218
run: |
219+
alias python='python3.11'
209220
scripts/build/gn_gen.sh --args=" \
210221
chip_crypto=\"boringssl\"
211222
enable_rtti=true \

0 commit comments

Comments
 (0)