Skip to content

Commit a99c61b

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

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.ci-macosx.sh

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,27 @@
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 upgrade python due to unlinking failure
12+
# (cf. https://github.com/actions/setup-python/issues/577 )
13+
rm -f /usr/local/bin/2to3
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+
rm -f /usr/local/bin/2to3-3.11
19+
rm -f /usr/local/bin/idle3.11
20+
rm -f /usr/local/bin/pydoc3.11
21+
rm -f /usr/local/bin/python3.11
22+
rm -f /usr/local/bin/python3.11-config
23+
brew upgrade
24+
1025
brew install pkg-config
1126
brew install opam
1227
brew install libev

0 commit comments

Comments
 (0)