win-download-openssl.ps1 525 B

123456789101112131415
  1. # Download and extract the prebuilt openssl libraries provided by the python developers.
  2. # The file is extracted to the .\external directory.
  3. $url = "https://github.com/python/cpython-bin-deps/archive/openssl-bin-1.1.1c.zip"
  4. $dest = "external"
  5. $ErrorActionPreference = "Stop"
  6. Write-Output "Downloading OpenSSL from cpython-bin-deps repository ..."
  7. Invoke-WebRequest $url -OutFile openssl.zip
  8. Write-Output "Extracting OpenSSL"
  9. Expand-Archive -Path openssl.zip -DestinationPath $dest -Force
  10. Remove-Item -Path openssl.zip