File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -6,15 +6,16 @@ function Get-WhlFile {
6
6
[Parameter (Mandatory = $true )] [string ]$Destination ,
7
7
[Parameter (Mandatory = $false )] [string ]$ExtraIndexUrl = " "
8
8
)
9
- $pipCommandArgs = " "
9
+
10
+ $LibArg = " $Library ==$Version "
10
11
if ($ExtraIndexUrl ) {
11
- $pipCommandArgs += " --extra-index-url=$ExtraIndexUrl "
12
+ $ExtraIndexArg = " --extra-index-url=$ExtraIndexUrl "
13
+ Write-Host " python -m pip download --quiet --only-binary=:all: --dest $Destination --no-deps $ExtraIndexArg $LibArg "
14
+ python - m pip download -- quiet -- only- binary= :all: -- dest $Destination -- no- deps $ExtraIndexArg $LibArg
15
+ } else {
16
+ Write-Host " python -m pip download --quiet --only-binary=:all: --dest $Destination --no-deps $LibArg "
17
+ python - m pip download -- quiet -- only- binary= :all: -- dest $Destination -- no- deps $LibArg
12
18
}
13
- $pipCommandArgs += " $Library ==$Version "
14
-
15
- # download the whl file
16
- Write-Host " python -m pip download --quiet --only-binary=:all: --dest $Destination --no-deps $pipCommandArgs "
17
- python - m pip download -- quiet -- only- binary= :all: -- dest $Destination -- no- deps $pipCommandArgs
18
19
if ($LASTEXITCODE -ne 0 ) {
19
20
return $false
20
21
}
You can’t perform that action at this time.
0 commit comments