Skip to content

Commit 9707125

Browse files
[-] set PATH environment variables before installing pip (#75)
1 parent e878045 commit 9707125

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/install.ps1

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@
33

44
Write-Host "--- Installing Python runtime ---" -ForegroundColor blue
55
Start-Process -FilePath .\python-install.exe -ArgumentList "/quiet InstallAllUsers=1 PrependPath=1 Include_test=0 Include_launcher=0" -NoNewWindow -Wait
6-
# update pip and pipe output to stdout to avoid parallel execution
7-
python.exe -m pip install --upgrade pip | Out-Default
8-
Write-Host "--- Python runtime installed ---`n" -ForegroundColor green
96

107
# Update Path variable with installed Python
118
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
129

10+
# update pip and pipe output to stdout to avoid parallel execution
11+
python.exe -m pip install --upgrade pip | Out-Default
12+
Write-Host "--- Python runtime installed ---`n" -ForegroundColor green
13+
1314
Write-Host "--- Installing Patroni packages ---" -ForegroundColor blue
1415
Set-Location 'patroni'
1516
pip3.exe install --no-index --find-links .patroni-packages -r requirements.txt

0 commit comments

Comments
 (0)