File tree 3 files changed +6
-4
lines changed
3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ chmod +x ../python $PYTHON_MAJOR $PYTHON_MAJOR_DOT_MINOR $PYTHON_MAJOR_MINOR pyt
69
69
70
70
echo " Upgrading pip..."
71
71
./python -m ensurepip
72
- ./python -m pip install --ignore-installed pip --disable-pip-version-check --no-warn-script-location
72
+ ./python -m pip install --ignore-installed pip --disable-pip-version-check --no-warn-script-location --root-user-action=ignore
73
73
74
74
echo " Install OpenSSL certificates"
75
75
sh -e " ${PYTHON_APPLICATION_PATH} /Install Certificates.command"
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ chmod +x ../python $PYTHON_MAJOR $PYTHON_MAJOR_DOT_MINOR $PYTHON_MAJORMINOR pyth
50
50
51
51
echo " Upgrading pip..."
52
52
./python -m ensurepip
53
- ./python -m pip install --ignore-installed pip --disable-pip-version-check --no-warn-script-location
53
+ ./python -m pip install --ignore-installed pip --disable-pip-version-check --no-warn-script-location --root-user-action=ignore
54
54
55
55
echo " Create complete file"
56
56
touch $PYTHON_TOOLCACHE_VERSION_PATH /x64.complete
Original file line number Diff line number Diff line change @@ -101,7 +101,9 @@ if ($null -ne $InstalledVersions) {
101
101
if (Test-Path - Path $InstalledVersion ) {
102
102
Write-Host " Deleting $InstalledVersion ..."
103
103
Remove-Item - Path $InstalledVersion - Recurse - Force
104
- Remove-Item - Path " $ ( $InstalledVersion.Parent.FullName ) /${Architecture} .complete" - Force - Verbose
104
+ if (Test-Path - Path " $ ( $InstalledVersion.Parent.FullName ) /${Architecture} .complete" ) {
105
+ Remove-Item - Path " $ ( $InstalledVersion.Parent.FullName ) /${Architecture} .complete" - Force - Verbose
106
+ }
105
107
}
106
108
}
107
109
} else {
@@ -132,7 +134,7 @@ if ($MajorVersion -ne "2") {
132
134
133
135
Write-Host " Install and upgrade Pip"
134
136
$PythonExePath = Join-Path - Path $PythonArchPath - ChildPath " python.exe"
135
- cmd.exe / c " $PythonExePath -m ensurepip && $PythonExePath -m pip install --upgrade pip --no-warn-script-location"
137
+ cmd.exe / c " $PythonExePath -m ensurepip && $PythonExePath -m pip install --upgrade pip --no-warn-script-location --root-user-action=ignore "
136
138
137
139
Write-Host " Create complete file"
138
140
New-Item - ItemType File - Path $PythonVersionPath - Name " $Architecture .complete" | Out-Null
You can’t perform that action at this time.
0 commit comments