Skip to content

Commit 251303f

Browse files
committed
Use official builds of Python on MacOS to generate portable wheels.
1 parent b9beef9 commit 251303f

1 file changed

Lines changed: 14 additions & 5 deletions

File tree

.github/workflows/python-package-macos.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
strategy:
1010
matrix:
1111
os: ['macos-11.0']
12-
python-version: ['3.5']
12+
python-version: ['3.7.9']
1313

1414
steps:
1515
- uses: actions/checkout@v2
@@ -18,10 +18,19 @@ jobs:
1818
- name: Checkout submodules
1919
run: |
2020
git submodule update --init --recursive --depth 1
21-
- name: Set up Python ${{ matrix.python-version }}
22-
uses: actions/setup-python@v2
23-
with:
24-
python-version: ${{ matrix.python-version }}
21+
- name: Set up Mac Python ${{ matrix.python-version }}
22+
# actions/setup-python can't be used as it builds less portable extensions.
23+
env:
24+
MB_PYTHON_VERSION: ${{ matrix.python-version }}
25+
run: |
26+
source .travis/install_python.sh
27+
install_python
28+
$PYTHON_EXE -m venv venv
29+
source venv/bin/activate
30+
echo "$PATH" >> $GITHUB_PATH
31+
- name: Print Python version
32+
run: |
33+
python -VV
2534
- name: Install Python dependencies
2635
run: |
2736
python -m pip install --upgrade pip

0 commit comments

Comments
 (0)