Skip to content

Commit efd763d

Browse files
committed
windows-modules: Enable specification of the ITK_PACKAGE_VERSION
1 parent 775b390 commit efd763d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
trap { Write-Error $_; Exit 1 }
22

3-
set-alias sz "$env:ProgramFiles\7-Zip\7z.exe"
3+
set-alias sz "$env:ProgramFiles\7-Zip\7z.exe"
44
iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/scikit-build/scikit-ci-addons/master/windows/install-python.ps1'))
5-
Invoke-WebRequest -Uri "https://github.com/InsightSoftwareConsortium/ITKPythonBuilds/releases/download/v5.0a01/ITKPythonBuilds-windows.zip" -OutFile "ITKPythonBuilds-windows.zip"
5+
if (-not (Test-Path env:ITK_PACKAGE_VERSION)) { $env:ITK_PACKAGE_VERSION = 'v5.0a01' }
6+
Invoke-WebRequest -Uri "https://github.com/InsightSoftwareConsortium/ITKPythonBuilds/releases/download/$env:ITK_PACKAGE_VERSION/ITKPythonBuilds-windows.zip" -OutFile "ITKPythonBuilds-windows.zip"
67
sz x ITKPythonBuilds-windows.zip -oC:\P -aoa -r
78
Invoke-WebRequest -Uri "http://ftp.stack.nl/pub/users/dimitri/doxygen-1.8.11.windows.bin.zip" -OutFile "doxygen-1.8.11.windows.bin.zip"
89
sz x doxygen-1.8.11.windows.bin.zip -oC:\P\doxygen -aoa -r

0 commit comments

Comments
 (0)