Skip to content

Commit f47a53f

Browse files
yvtjdm
authored andcommitted
chore(ci): relink python3 to python3.9 on Homebrew
Implements a work-around for the compatibility issue between mozjs and Homebrew's Python 3.10 formula.
1 parent 5bebdea commit f47a53f

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,15 @@ jobs:
104104
- uses: actions/checkout@v2
105105
with:
106106
fetch-depth: 2
107+
# TODO: Remove this step when the compatibility issue between mozjs and
108+
# Homebrew's Python 3.10 formula (servo/rust-mozjs#559) is fixed
109+
- name: Select Python 3.9
110+
run: |
111+
brew install python@3.9
112+
cd $(dirname $(which python3.9))
113+
rm -f python3 pip3
114+
ln -s python3.9 python3
115+
ln -s pip3.9 pip3
107116
- name: Bootstrap
108117
run: |
109118
python3 -m pip install --upgrade pip virtualenv

.github/workflows/nightly.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,15 @@ jobs:
3939
- uses: actions/checkout@v2
4040
with:
4141
fetch-depth: 2
42+
# TODO: Remove this step when the compatibility issue between mozjs and
43+
# Homebrew's Python 3.10 formula (servo/rust-mozjs#559) is fixed
44+
- name: Select Python 3.9
45+
run: |
46+
brew install python@3.9
47+
cd $(dirname $(which python3.9))
48+
rm -f python3 pip3
49+
ln -s python3.9 python3
50+
ln -s pip3.9 pip3
4251
- name: Bootstrap
4352
run: |
4453
python3 -m pip install --upgrade pip virtualenv

0 commit comments

Comments
 (0)