Skip to content

Commit 63ead8f

Browse files
committed
Update build_macos.yml
1 parent 736261e commit 63ead8f

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

.github/workflows/build_macos.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,14 @@ jobs:
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 "rm \47/usr/local/bin/" $9 "\47"}'
69+
ls -d /Library/Frameworks/Python.framework/Versions/3.* 2> /dev/null | awk '{print "rm -rf \47" $0 "\47"}'
70+
ls -d /Applications/Python\ 3.* 2> /dev/null | awk '{print "rm -rf \47" $0 "\47"}'
71+
6472
- name: Setup python
6573
uses: actions/setup-python@v4
6674
with:
@@ -78,16 +86,6 @@ jobs:
7886
python scripts/gha/install_prereqs_desktop.py
7987
cd ..
8088
81-
- name: Remove python3.11
82-
shell: bash
83-
run: |
84-
if [ -d /usr/local/bin/python3.11 ]; then
85-
echo "Deleting python3.11"
86-
rm /usr/local/bin/python3.11
87-
else
88-
echo "Failed to find python3.11"
89-
fi
90-
9189
- name: Install python deps
9290
shell: bash
9391
run: |

0 commit comments

Comments
 (0)