File tree 1 file changed +12
-7
lines changed
1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -11,20 +11,25 @@ if [[ ! -f "configs/$1.yaml" ]];then
11
11
exit 1
12
12
fi
13
13
14
- if [[ $( which python3 & > /dev/null ) ]] ; then
14
+ if ! which python3 & > /dev/null; then
15
15
echo " Could not find python3"
16
16
exit 1
17
17
fi
18
- if [[ $( which pip3 & > /dev/null ) ]]; then
19
- echo " Could not find pip3"
18
+ if which pip3 & > /dev/null; then
19
+ PIP=pip3
20
+ elif which pip & > /dev/null; then
21
+ PIP=pip
22
+ else
23
+ echo " Could not find pip3 or pip"
20
24
exit 1
21
25
fi
22
- mkdir default_config
23
- ln -s ../configs/$1 .yaml default_config/config.yaml
26
+
27
+ mkdir -p default_config
28
+ ln -sf ../configs/$1 .yaml default_config/config.yaml
24
29
echo " Using python3: $( which python3) "
25
30
unset PYTHONUSERBASE
26
31
export PYTHONUSERBASE=PyDeps
27
32
echo " export PY_EXE=$( which python3) " > frontends/inst_vars.sh
28
- echo " Installing pyyaml"
29
- pip3 install --user pyyaml
33
+ echo " Installing pyyaml with $PIP "
34
+ $PIP install --user pyyaml
30
35
You can’t perform that action at this time.
0 commit comments