Skip to content

Commit a3a2311

Browse files
author
Simon Rit
committed
ENH: Clean-up existing ITKPythonBuilds-windows.zip extraction
This can occur if the same machine is used twice, e.g., a self-hosted runner.
1 parent 2dca3c8 commit a3a2311

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.co
4646
if (-not $env:ITK_PACKAGE_VERSION) { $env:ITK_PACKAGE_VERSION = 'v5.3.0' }
4747
echo "Fetching build archive $env:ITK_PACKAGE_VERSION"
4848
Invoke-WebRequest -Uri "https://github.com/InsightSoftwareConsortium/ITKPythonBuilds/releases/download/$env:ITK_PACKAGE_VERSION/ITKPythonBuilds-windows.zip" -OutFile "ITKPythonBuilds-windows.zip"
49+
if (Test-Path C:\P) {
50+
Remove-Item -Recurse -Force C:\P
51+
}
4952
7z x ITKPythonBuilds-windows.zip -oC:\P -aoa -r
5053

5154
# Optional: Update ITKPythonPackage build scripts

0 commit comments

Comments
 (0)