Skip to content

Commit f102cb2

Browse files
add flag to skip warnings of location of pip
1 parent dc6698e commit f102cb2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

installers/nix-setup-template.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ chmod +x ../python $PYTHON_MAJOR $PYTHON_MAJOR_DOT_MINOR $PYTHON_MAJORMINOR pyth
5050

5151
echo "Upgrading PIP..."
5252
./python -m ensurepip
53-
./python -m pip install --ignore-installed pip
53+
./python -m pip install --ignore-installed pip --no-warn-script-location
5454

5555
echo "Create complete file"
5656
touch $PYTHON_TOOLCACHE_VERSION_PATH/x64.complete

installers/win-setup-template.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ if ($LASTEXITCODE -ne 0) {
123123

124124
Write-Host "Install and upgrade Pip"
125125
$PythonExePath = Join-Path -Path $PythonArchPath -ChildPath "python.exe"
126-
cmd.exe /c "$PythonExePath -m ensurepip && $PythonExePath -m pip install --upgrade pip"
126+
cmd.exe /c "$PythonExePath -m ensurepip && $PythonExePath -m pip install --upgrade pip --no-warn-script-location"
127127

128128
Write-Host "Create complete file"
129129
New-Item -ItemType File -Path $PythonVersionPath -Name "$Architecture.complete" | Out-Null

0 commit comments

Comments
 (0)