Skip to content

Commit 89f9e65

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent ad7c9a3 commit 89f9e65

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

winbuild/test_docker.ps1

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ param ([string]$python,[string]$arch,[string]$pypy="")
22
$ErrorActionPreference = 'Stop'
33
$ProgressPreference = 'SilentlyContinue'
44
if ($python -like "pypy*") {
5-
$url = 'https://downloads.python.org/pypy/{0}-v{1}-win64.zip' -f ($python, $pypy)
6-
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
7-
Invoke-WebRequest -Uri 'https://aka.ms/vs/15/release/vc_redist.x64.exe' -OutFile 'vc_redist.x64.exe'
8-
& C:\vc_redist.x64.exe /install /quiet /norestart
9-
Invoke-WebRequest -Uri $url -OutFile 'pypy.zip'
10-
tar -xf 'pypy.zip'
11-
mv pypy*-win64 C:\Python
5+
$url = 'https://downloads.python.org/pypy/{0}-v{1}-win64.zip' -f ($python, $pypy)
6+
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
7+
Invoke-WebRequest -Uri 'https://aka.ms/vs/15/release/vc_redist.x64.exe' -OutFile 'vc_redist.x64.exe'
8+
& C:\vc_redist.x64.exe /install /quiet /norestart
9+
Invoke-WebRequest -Uri $url -OutFile 'pypy.zip'
10+
tar -xf 'pypy.zip'
11+
mv pypy*-win64 C:\Python
1212
} else {
1313
$suffix = if ($arch -eq "x64") {"-amd64"} else {""}
1414
$url = 'https://www.python.org/ftp/python/{0}/python-{0}{1}.exe' -f ($python, $suffix)

0 commit comments

Comments
 (0)