Skip to content

Commit f4827e2

Browse files
committed
ci(macos): Fix brew upgrade failure
Related: https://github.com/actions/setup-python/issues/577
1 parent 6cb8165 commit f4827e2

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.ci-macosx.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,22 @@
11
#!/bin/sh
22

3-
set -e
3+
set -ex
44

55
sw_vers
66
system_profiler SPSoftwareDataType
77
uname -a
88

99
brew update
10+
11+
# homebrew fails to update python due to unlinking failure
12+
rm -f /usr/local/bin/2to3
13+
rm -f /usr/local/bin/2to3-3.11
14+
rm -f /usr/local/bin/idle3
15+
rm -f /usr/local/bin/pydoc3
16+
rm -f /usr/local/bin/python3
17+
rm -f /usr/local/bin/python3-config
18+
brew upgrade
19+
1020
brew install pkg-config
1121
brew install opam
1222
brew install libev

0 commit comments

Comments
 (0)