Skip to content

Commit

Permalink
CI: install setuptools if distutils is missing.
Browse files Browse the repository at this point in the history
Python 3.12 venv no longer installs setuptools:
python/cpython@ece20dba120a1a47
  • Loading branch information
jwilk committed May 29, 2023
1 parent a1f358a commit 1b386d3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: ${{matrix.python}}
- name: install setuptools (if distutils is missing)
run: |
if ! [ -d ${{env.pythonLocation}}/lib/python*/distutils/ ]; then
python -m pip install setuptools
fi
- name: set up pip cache
uses: actions/cache@v3
with:
Expand Down

0 comments on commit 1b386d3

Please sign in to comment.