Skip to content

Commit a275dfe

Browse files
committed
Update arch handling
1 parent 4268d43 commit a275dfe

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

download.ps1

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,15 @@
66
# https://www.python.org/ftp/python/3.5.1/python-3.5.1.exe
77
# https://www.python.org/ftp/python/3.5.1/python-3.5.1.exe.asc
88

9-
if ($env:PYARCH -eq "amd64") {
9+
if ($env:PYARCH -eq "64") {
1010
$filename = "python-${env:PYVERSION}-amd64.exe"
11-
$arch = "64"
1211
} else {
1312
$filename = "python-${env:PYVERSION}.exe"
14-
$arch = "32"
1513
}
1614

1715
$url = "https://www.python.org/ftp/python/${env:PYVERSION}/${filename}"
1816
$target = $PSScriptRoot + "\" + $filename
19-
$targetdir = $PSScriptRoot + "\Python-${env:PYVERSION}-${arch}"
17+
$targetdir = $PSScriptRoot + "\Python-${env:PYVERSION}-${env:PYARCH}"
2018
$logfile = $PSScriptRoot + "\install.log"
2119

2220
Write-Output "URL: $url"

0 commit comments

Comments
 (0)