Skip to content

Commit 5d1b0d0

Browse files
author
avandras
committed
Use psycopg 3 instead of the now-broken psycopg2-binary
1 parent b7d5e05 commit 5d1b0d0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

make.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ function Get-PatroniPackages {
102102
Write-Host "`n--- Download PATRONI packages ---" -ForegroundColor blue
103103
Set-Location "$MD\patroni"
104104
& $PIP download -r requirements.txt -d .patroni-packages
105-
& $PIP download pip pip_install setuptools wheel cdiff psycopg2-binary -d .patroni-packages
105+
& $PIP download pip pip_install setuptools wheel cdiff psycopg-binary -d .patroni-packages
106106
Set-Location -Path "..\.."
107107
Write-Host "`n--- PATRONI packages downloaded ---" -ForegroundColor green
108108
}
@@ -144,4 +144,4 @@ Update-PythonAndPIP
144144
Get-PatroniPackages
145145
Get-WinSW
146146
Export-Assets
147-
Write-Host "`n--- PACKAGING FINISHED ---" -ForegroundColor green
147+
Write-Host "`n--- PACKAGING FINISHED ---" -ForegroundColor green

src/install.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Write-Host "--- Python runtime installed ---`n" -ForegroundColor green
2121

2222
Write-Host "--- Installing Patroni packages ---" -ForegroundColor blue
2323
pip3.exe install --no-index --find-links .patroni-packages -r requirements.txt
24-
pip3.exe install --no-index --find-links .patroni-packages psycopg2-binary
24+
pip3.exe install --no-index --find-links .patroni-packages psycopg-binary
2525
pip3.exe install --no-index --find-links .patroni-packages cdiff
2626
Set-Location '..'
2727
Write-Host "--- Patroni packages installed ---`n" -ForegroundColor green
@@ -74,4 +74,4 @@ netsh advfirewall firewall add rule name="postgresql" dir=in action=allow progra
7474
netsh advfirewall firewall add rule name="python" dir=in action=allow program="$python" enable=yes
7575
Write-Host "--- Firewall rules sucessfully installed ---" -ForegroundColor green
7676

77-
Write-Host "--- Installation sucessfully finished ---" -ForegroundColor green
77+
Write-Host "--- Installation sucessfully finished ---" -ForegroundColor green

0 commit comments

Comments
 (0)