Skip to content

Commit a3cc40f

Browse files
authored
Change workaround for GHA failure in 'macos-latest' with 3.9 (#4820)
2 parents 75f7782 + 3869b10 commit a3cc40f

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)