Skip to content

Commit 9bffc01

Browse files
committed
Use pypy.exe if it exists
1 parent d2295c0 commit 9bffc01

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/wheels-test.ps1

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,21 @@ if ("$venv" -like "*\cibw-run-*\pp*-win_amd64\*") {
99
C:\vc_redist.x64.exe /install /quiet /norestart | Out-Null
1010
}
1111
$env:path += ";$pillow\winbuild\build\bin\"
12+
if (Test-Path $venv\Scripts\pypy.exe) {
13+
$python = "pypy.exe"
14+
} else {
15+
$python = "python.exe"
16+
}
1217
& reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\python.exe" /v "GlobalFlag" /t REG_SZ /d "0x02000000" /f
1318
if ("$venv" -like "*\cibw-run-*-win_amd64\*") {
14-
& $venv\Scripts\python.exe -m pip install numpy
19+
& $venv\Scripts\$python -m pip install numpy
1520
}
1621
cd $pillow
17-
& $venv\Scripts\python.exe -VV
22+
& $venv\Scripts\$python -VV
1823
if (!$?) { exit $LASTEXITCODE }
19-
& $venv\Scripts\python.exe selftest.py
24+
& $venv\Scripts\$python selftest.py
2025
if (!$?) { exit $LASTEXITCODE }
21-
& $venv\Scripts\python.exe -m pytest -vx Tests\check_wheel.py
26+
& $venv\Scripts\$python -m pytest -vx Tests\check_wheel.py
2227
if (!$?) { exit $LASTEXITCODE }
23-
& $venv\Scripts\python.exe -m pytest -vx Tests
28+
& $venv\Scripts\$python -m pytest -vx Tests
2429
if (!$?) { exit $LASTEXITCODE }

0 commit comments

Comments
 (0)