File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -10,12 +10,7 @@ function Get-RegistryVersionFilter {
10
10
)
11
11
12
12
$archFilter = if ($Architecture -eq ' x86' ) { " 32-bit" } else { " 64-bit" }
13
- # ## Python 2.7 x86 have no architecture postfix
14
- if (($Architecture -eq " x86" ) -and ($MajorVersion -eq 2 )) {
15
- " Python $MajorVersion .$MinorVersion .\d+$"
16
- } else {
17
- " Python $MajorVersion .$MinorVersion .*($archFilter )"
18
- }
13
+ " Python $MajorVersion .$MinorVersion .*($archFilter )"
19
14
}
20
15
21
16
function Remove-RegistryEntries {
@@ -128,9 +123,7 @@ if ($LASTEXITCODE -ne 0) {
128
123
}
129
124
130
125
Write-Host " Create `python3` symlink"
131
- if ($MajorVersion -ne " 2" ) {
132
- New-Item - Path " $PythonArchPath \python3.exe" - ItemType SymbolicLink - Value " $PythonArchPath \python.exe"
133
- }
126
+ New-Item - Path " $PythonArchPath \python3.exe" - ItemType SymbolicLink - Value " $PythonArchPath \python.exe"
134
127
135
128
Write-Host " Install and upgrade Pip"
136
129
$Env: PIP_ROOT_USER_ACTION = " ignore"
You can’t perform that action at this time.
0 commit comments