Skip to content

Commit 7fc8b5a

Browse files
committed
Build only 64-bit wheels
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
1 parent 6cc16d5 commit 7fc8b5a

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

docs/Build_ITK_Module_Python_packages.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ First, install Microsoft Visual Studio 2015, Git, and CMake, which should be add
115115
Open a PowerShell terminal as Administrator, and install Python::
116116

117117
PS C:\> Set-ExecutionPolicy Unrestricted
118+
PS C:\> $pythonArch = "64"
118119
PS C:\> iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/scikit-build/scikit-ci-addons/master/windows/install-python.ps1'))
119120

120121
In a PowerShell prompt, run the `windows-build-wheels.ps1` script::

docs/Build_ITK_Python_packages.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ First, install Microsoft Visual Studio 2015, Git, and CMake, which should be add
6565
Open a PowerShell terminal as Administrator, and install Python::
6666

6767
PS C:\> Set-ExecutionPolicy Unrestricted
68+
PS C:\> $pythonArch = "64"
6869
PS C:\> iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/scikit-build/scikit-ci-addons/master/windows/install-python.ps1'))
6970

7071
In a PowerShell prompt::

scripts/windows-download-cache-and-build-module-wheels.ps1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ $AllProtocols = [System.Net.SecurityProtocolType]'Ssl3,Tls,Tls11,Tls12'
33
[System.Net.ServicePointManager]::SecurityProtocol = $AllProtocols
44

55
set-alias sz "$env:ProgramFiles\7-Zip\7z.exe"
6-
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')) }
6+
if (-not (Test-Path env:APPVEYOR)) {
7+
$pythonArch = "64"
8+
iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/scikit-build/scikit-ci-addons/master/windows/install-python.ps1'))
9+
}
710
if (-not (Test-Path env:ITK_PACKAGE_VERSION)) { $env:ITK_PACKAGE_VERSION = 'v5.0rc01' }
811
Invoke-WebRequest -Uri "https://github.com/InsightSoftwareConsortium/ITKPythonBuilds/releases/download/$env:ITK_PACKAGE_VERSION/ITKPythonBuilds-windows.zip" -OutFile "ITKPythonBuilds-windows.zip"
912
sz x ITKPythonBuilds-windows.zip -oC:\P -aoa -r

0 commit comments

Comments
 (0)