Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 2, 2023
1 parent ad7c9a3 commit 89f9e65
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions winbuild/test_docker.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ param ([string]$python,[string]$arch,[string]$pypy="")
$ErrorActionPreference = 'Stop'
$ProgressPreference = 'SilentlyContinue'
if ($python -like "pypy*") {
$url = 'https://downloads.python.org/pypy/{0}-v{1}-win64.zip' -f ($python, $pypy)
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Invoke-WebRequest -Uri 'https://aka.ms/vs/15/release/vc_redist.x64.exe' -OutFile 'vc_redist.x64.exe'
& C:\vc_redist.x64.exe /install /quiet /norestart
Invoke-WebRequest -Uri $url -OutFile 'pypy.zip'
tar -xf 'pypy.zip'
mv pypy*-win64 C:\Python
$url = 'https://downloads.python.org/pypy/{0}-v{1}-win64.zip' -f ($python, $pypy)
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Invoke-WebRequest -Uri 'https://aka.ms/vs/15/release/vc_redist.x64.exe' -OutFile 'vc_redist.x64.exe'
& C:\vc_redist.x64.exe /install /quiet /norestart
Invoke-WebRequest -Uri $url -OutFile 'pypy.zip'
tar -xf 'pypy.zip'
mv pypy*-win64 C:\Python
} else {
$suffix = if ($arch -eq "x64") {"-amd64"} else {""}
$url = 'https://www.python.org/ftp/python/{0}/python-{0}{1}.exe' -f ($python, $suffix)
Expand Down

0 comments on commit 89f9e65

Please sign in to comment.