Skip to content

Commit 47b7755

Browse files
jcfrthewtex
authored andcommitted
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 bd3dba7 commit 47b7755

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,8 +3,11 @@ $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-
iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/scikit-build/scikit-ci-addons/master/windows/install-python.ps1'))
76
if (-not (Test-Path env:ITK_PACKAGE_VERSION)) { $env:ITK_PACKAGE_VERSION = 'v5.0a01' }
7+
if (-not (Test-Path env:APPVEYOR)) {
8+
$pythonArch = "64"
9+
iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/scikit-build/scikit-ci-addons/master/windows/install-python.ps1'))
10+
}
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
1013
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/InsightSoftwareConsortium/ITKPythonPackage/b2974be9f53a6e99edc4c317b3992362a36f24b2/scripts/internal/windows_build_common.py" -OutFile "C:\P\IPP\scripts\internal\windows_build_common.py"

0 commit comments

Comments
 (0)