Skip to content

Commit 09b911f

Browse files
authored
Merge pull request #391 from Yhg1s/remove-setup-python
Remove the actions/setup-python action for self-hosted Linux runners.
2 parents 2d07d4b + 4bbe1cf commit 09b911f

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

Diff for: PROVISIONING.md

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ sudo apt install python3 build-essential ccache gdb lcov pkg-config \
1919
lzma lzma-dev tk-dev uuid-dev zlib1g-dev linux-perf
2020
```
2121

22+
The self-hosted runner needs to have `python` be Python 3.9 or later.
23+
2224
### Enable ccache
2325

2426
```bash session

Diff for: bench_runner/templates/_benchmark.src.yml

-7
Original file line numberDiff line numberDiff line change
@@ -161,11 +161,6 @@ jobs:
161161
run: |
162162
git gc
163163
- uses: fregante/setup-git-user@v2
164-
- name: Setup system Python
165-
if: ${{ runner.arch == 'X64' }}
166-
uses: actions/setup-python@v5
167-
with:
168-
python-version: "3.11"
169164
- name: Checkout CPython
170165
uses: actions/checkout@v4
171166
with:
@@ -328,8 +323,6 @@ jobs:
328323
./configure --enable-option-checking=fatal ${{ inputs.pgo == true && '--enable-optimizations --with-lto=full' || '' }} ${{ inputs.tier2 == true && '--enable-experimental-jit=interpreter' || '' }} ${{ inputs.jit == true && '--enable-experimental-jit=yes' || '' }} ${{ inputs.nogil == true && '--disable-gil' || '' }} ${{ inputs.clang == true && '--with-tail-call-interp' || '' }} ${PYTHON_CONFIGURE_FLAGS:-}
329324
make -j4
330325
./python.exe -VV
331-
# On macos ARM64, actions/setup-python isn't available, so we rely on a
332-
# pre-installed homebrew one, used through a venv
333326
- name: Install pyperformance
334327
if: ${{ steps.should_run.outputs.should_run != 'false' }}
335328
run: |

0 commit comments

Comments
 (0)