Skip to content

Commit 7046101

Browse files
committed
[+] Execute pip packages installation in a separate shell, fixes #3
1 parent d0ed64c commit 7046101

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

src/install-packages.bat

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
@ECHO off
2+
3+
SET PIP=pip3.exe
4+
5+
@ECHO --- Installing Patroni packages ---
6+
CD patroni
7+
%PIP% install --no-index --find-links .patroni-packages -r requirements.txt
8+
%PIP% install --no-index --find-links .patroni-packages psycopg2-binary
9+
@ECHO --- Patroni packages installed ---
10+
11+
@ECHO --- You may close this terminal window ---

src/install.bat

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
@ECHO off
22

33
SET PYTHON=python.exe
4-
SET PIP=pip3.exe
4+
55

66
@ECHO --- Installing Python runtime ---
77
python-install.exe /quiet InstallAllUsers=1 PrependPath=1 Include_test=0 Include_launcher=0
8+
%PYTHON% -m pip install --upgrade pip
89
@ECHO --- Python runtime installed ---
910

10-
@ECHO --- Installing Patroni packages ---
11-
%PYTHON% -m pip install --upgrade pip
12-
CD patroni
13-
%PIP% install --no-index --find-links .patroni-packages -r requirements.txt
14-
%PIP% install --no-index --find-links .patroni-packages psycopg2-binary
15-
@ECHO --- Patroni packages installed ---
11+
START cmd.exe /k install-packages.bat
1612

1713
@PAUSE

0 commit comments

Comments
 (0)