Update install.sh
Added user options
This commit is contained in:
parent
e3eaadf263
commit
e455081c27
21
install.sh
21
install.sh
@ -1,21 +1,42 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
#Build ctp/lts/ib api
|
#Build ctp/lts/ib api
|
||||||
|
|
||||||
|
echo "是否要安装'CTP'接口? (Do you want to install 'CTP'?)"
|
||||||
|
read -p "Enter [y]n: " var1
|
||||||
|
var1=${var1:-y}
|
||||||
|
if [ "$var1" = "y" ]; then
|
||||||
pushd vnpy/api/ctp
|
pushd vnpy/api/ctp
|
||||||
bash build.sh
|
bash build.sh
|
||||||
popd
|
popd
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "是否要安装'LTS'接口? (Do you want to install 'LTS'?)"
|
||||||
|
read -p "Enter [y]n: " var1
|
||||||
|
var1=${var1:-y}
|
||||||
|
if [ "$var1" = "y" ]; then
|
||||||
pushd vnpy/api/lts
|
pushd vnpy/api/lts
|
||||||
bash build.sh
|
bash build.sh
|
||||||
popd
|
popd
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "是否要安装'XTP'接口? (Do you want to install 'XTP'?)"
|
||||||
|
read -p "Enter [y]n: " var1
|
||||||
|
var1=${var1:-y}
|
||||||
|
if [ "$var1" = "y" ]; then
|
||||||
pushd vnpy/api/xtp
|
pushd vnpy/api/xtp
|
||||||
bash build.sh
|
bash build.sh
|
||||||
popd
|
popd
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "是否要安装'IB'接口? (Do you want to install 'IB'?)"
|
||||||
|
read -p "Enter [y]n: " var1
|
||||||
|
var1=${var1:-y}
|
||||||
|
if [ "$var1" = "y" ]; then
|
||||||
pushd vnpy/api/ib
|
pushd vnpy/api/ib
|
||||||
bash build.sh
|
bash build.sh
|
||||||
popd
|
popd
|
||||||
|
fi
|
||||||
|
|
||||||
#Install Python Modules
|
#Install Python Modules
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
|
Loading…
Reference in New Issue
Block a user