Skip to content

Commit 6a66ac1

Browse files
committed
[-] fix pip calls after the installation of the python
1 parent 9e5ce57 commit 6a66ac1

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

src/install.bat

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
1-
@ECHO on
1+
@ECHO off
2+
3+
SET PYTHON=%LOCALAPPDATA%\Programs\Python\Python38\python.exe
4+
SET PIP=%LOCALAPPDATA%\Programs\Python\Python38\Scripts\pip3.exe
25

36
@ECHO --- Installing Python runtime ---
4-
python-install.exe /quiet InstallAllUsers=0 PrependPath=1 Include_test=0
7+
python-install.exe /quiet InstallAllUsers=0 PrependPath=1 Include_test=0 Include_launcher=0
58
@ECHO --- Python runtime installed ---
69

710
@ECHO --- Installing Patroni packages ---
8-
python -m pip install --upgrade pip
11+
%PYTHON% -m pip install --upgrade pip
912
CD patroni
10-
pip install --no-index --find-links .patroni-packages -r requirements.txt
11-
pip install --no-index --find-links .patroni-packages psycopg2-binary
13+
%PIP% install --no-index --find-links .patroni-packages -r requirements.txt
14+
%PIP% install --no-index --find-links .patroni-packages psycopg2-binary
1215
@ECHO --- Patroni packages installed ---
16+
17+
@PAUSE

0 commit comments

Comments
 (0)