Merge pull request #1217 from LeoK987/patch-1

Update install.sh
This commit is contained in:
vn.py 2018-11-08 10:09:30 +08:00 committed by GitHub
commit 234a64498f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,21 +1,42 @@
#!/bin/bash
#Build ctp/lts/ib api
pushd vnpy/api/ctp
bash build.sh
popd
pushd vnpy/api/lts
bash build.sh
popd
echo "是否要安装'CTP'接口? (Do you need 'CTP' interface?)"
read -p "Enter [y]n: " var1
var1=${var1:-y}
if [ "$var1" = "y" ]; then
pushd vnpy/api/ctp
bash build.sh
popd
fi
pushd vnpy/api/xtp
bash build.sh
popd
echo "是否要安装'LTS'接口? (Do you need 'LTS' interface?)"
read -p "Enter [y]n: " var1
var1=${var1:-y}
if [ "$var1" = "y" ]; then
pushd vnpy/api/lts
bash build.sh
popd
fi
pushd vnpy/api/ib
bash build.sh
popd
echo "是否要安装'XTP'接口? (Do you need 'XTP' interface?)"
read -p "Enter [y]n: " var1
var1=${var1:-y}
if [ "$var1" = "y" ]; then
pushd vnpy/api/xtp
bash build.sh
popd
fi
echo "是否要安装'IB'接口? (Do you need 'IB' interface?)"
read -p "Enter [y]n: " var1
var1=${var1:-y}
if [ "$var1" = "y" ]; then
pushd vnpy/api/ib
bash build.sh
popd
fi
#Install Python Modules
pip install -r requirements.txt