File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 6161 with :
6262 ruby-version : 3.0.2
6363
64+ # Remove other python installs before installing the version we want
65+ - name : Remove other pythons
66+ shell : bash
67+ run : |
68+ ls -l /usr/local/bin | grep /Library/Frameworks/Python.framework/Versions/3 | awk '{print "sudo rm \47/usr/local/bin/" $9 "\47"}'
69+ ls -d /Library/Frameworks/Python.framework/Versions/3.* 2> /dev/null | awk '{print "sudo rm -rf \47" $0 "\47"}'
70+ ls -d /Applications/Python\ 3.* 2> /dev/null | awk '{print "sudo rm -rf \47" $0 "\47"}'
71+
6472 - name : Setup python
6573 uses : actions/setup-python@v4
6674 with :
@@ -106,6 +114,12 @@ jobs:
106114 timeout-minutes : 90
107115 shell : bash
108116 run : |
117+ if [ -f /usr/local/bin/python3.11 ]; then
118+ echo "Removing python3.11"
119+ sudo rm -f /usr/local/bin/python3.11
120+ else
121+ echo "Did not find python3.11"
122+ fi
109123 # TODO add handling cmake_extras
110124 python scripts/build_scripts/build_zips.py --gha --platform=macos --unity_root=$UNITY_ROOT_DIR --use_boringssl --architecture=x86_64 --architecture=arm64 --apis=${{ inputs.apis }}
111125
You can’t perform that action at this time.
0 commit comments