Skip to content

Commit

Permalink
BUG: Build only 64-bit wheels
Browse files Browse the repository at this point in the history
This commit works around issue building ITKModuleTemplate wheels on
Azure Pipelines where 32-bit install of python is failing when using the
script provided by scikit-ci-addons.

See https://dev.azure.com/InsightSoftwareConsortium/ITKModules/_build/results?buildId=322
  • Loading branch information
Francois Budin committed Mar 18, 2019
1 parent 2ae28d9 commit cb35ba3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/windows-download-cache.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ $AllProtocols = [System.Net.SecurityProtocolType]'Ssl3,Tls,Tls11,Tls12'
[System.Net.ServicePointManager]::SecurityProtocol = $AllProtocols

set-alias sz "$env:ProgramFiles\7-Zip\7z.exe"
if (-not (Test-Path env:APPVEYOR)) { iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/scikit-build/scikit-ci-addons/master/windows/install-python.ps1')) }
if (-not (Test-Path env:APPVEYOR)) {
$pythonArch = "64"
iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/scikit-build/scikit-ci-addons/master/windows/install-python.ps1'))
}
if (-not (Test-Path env:ITK_PACKAGE_VERSION)) { $env:ITK_PACKAGE_VERSION = 'v5.0b01' }
Invoke-WebRequest -Uri "https://github.com/InsightSoftwareConsortium/ITKPythonBuilds/releases/download/$env:ITK_PACKAGE_VERSION/ITKPythonBuilds-windows.zip" -OutFile "ITKPythonBuilds-windows.zip"
sz x ITKPythonBuilds-windows.zip -oC:\P -aoa -r
Expand Down

0 comments on commit cb35ba3

Please sign in to comment.