File tree 1 file changed +25
-5
lines changed
1 file changed +25
-5
lines changed Original file line number Diff line number Diff line change 21
21
set -e
22
22
23
23
dir=${0%/* }
24
+ repair=false
25
+ for arg in " $@ " ; do
26
+ if [ " $arg " == " --repair" ]; then
27
+ repair=true
28
+ shift
29
+ break
30
+ fi
31
+ done
32
+
33
+
34
+ if [ ! -d " ${dir} " /polaris-venv ] || [ " $repair " == true ]; then
35
+ if [ ! -d ${dir} /polaris-venv ]; then
36
+ echo " Performing first-time setup for the Python client..."
37
+ python3 -m venv " ${dir} " /polaris-venv
38
+ else
39
+ echo " Repair dependencies for the Python client..."
40
+ fi
24
41
25
- if [ ! -d " ${dir} " /polaris-venv ]; then
26
- echo " Performing first-time setup for the Python client..."
27
42
rm -f " ${dir} " /poetry.lock
28
- python3 -m venv " ${dir} " /polaris-venv
29
43
. " ${dir} " /polaris-venv/bin/activate
30
- pip install -r regtests/requirements.txt
44
+ pip install --upgrade pip
45
+ pip install --upgrade -r regtests/requirements.txt
31
46
32
47
cp " ${dir} " /client/python/pyproject.toml " ${dir} "
33
48
pushd " $dir " && poetry install ; popd
34
49
35
50
deactivate
36
- echo " First time setup complete."
51
+
52
+ if [ ! -d ${dir} /polaris-venv ]; then
53
+ echo " First time setup complete."
54
+ else
55
+ echo " Dependencies repaired."
56
+ fi
37
57
fi
38
58
39
59
cd " $dir "
You can’t perform that action at this time.
0 commit comments