Skip to content

Commit 3869b10

Browse files
committed
Add workaround for GHA failur in 'macos-latest' with 3.9
1 parent 75f7782 commit 3869b10

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: .github/workflows/main.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,6 @@ jobs:
6363
- platform: ubuntu-latest
6464
python: "3.10"
6565
distutils: stdlib
66-
# TODO: Re-evaluate the need for the following workaround
67-
exclude:
68-
- {python: "3.9", platform: "macos-latest"} # actions/setup-python#981
6966
runs-on: ${{ matrix.platform }}
7067
continue-on-error: ${{ matrix.python == '3.14' }}
7168
env:
@@ -79,6 +76,9 @@ jobs:
7976
with:
8077
python-version: ${{ matrix.python }}
8178
allow-prereleases: true
79+
env:
80+
# Workaround for actions/setup-python#981 (env var only modified for this specific step)
81+
SETUPTOOLS_USE_DISTUTILS: ${{ matrix.platform == 'macos-latest' && matrix.python == '3.9' && 'stdlib' || matrix.distutils || 'local' }}
8282
- uses: actions/cache@v4
8383
id: cache
8484
with:

0 commit comments

Comments
 (0)