Skip to content

Commit

Permalink
Fix install script for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Thiago Crepaldi committed Apr 13, 2018
1 parent cb28c0c commit 11c82c8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Scripts/install/windows/ps/install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,11 @@ function WhlFileInfoFromVersionFile(
throw "`nFatal Error: Malformed version information in [$versionFile]."
}
$cntkVersion = $cntkVersion -replace "-", "."
$cntkVersion = $cntkVersion -replace "^cntk\.", "cntk-"
if ($cntkTarget -eq "GPU") {
$cntkVersion = $cntkVersion -replace "^cntk\.", "cntk_gpu-"
} else {
$cntkVersion = $cntkVersion -replace "^cntk\.", "cntk-"
}

return @{ Name = "{0}-cp{1}-cp{2}m-win_amd64.whl" -f $cntkVersion, $pyVersion, $pyVersion; CntkUrl = "{0}/{1}" -f $wheelBaseUrl, $cntkTarget }
}
Expand Down

0 comments on commit 11c82c8

Please sign in to comment.