From 47295a25a28055dbcae68d941ce9623a0dd43a7c Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Sat, 15 Jul 2017 17:02:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0linux=E4=B8=8B=E7=9A=84?= =?UTF-8?q?=E5=BF=AB=E9=80=9F=E5=AE=89=E8=A3=85=E8=84=9A=E6=9C=ACinstall.s?= =?UTF-8?q?h?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 24 ++++++++++++++++++++++++ vnpy/api/ctp/build.sh | 4 ++-- vnpy/api/ib/build.sh | 5 +++++ 3 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 install.sh diff --git a/install.sh b/install.sh new file mode 100644 index 00000000..5f97900e --- /dev/null +++ b/install.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +::Build ctp/lts/ib api +pushd vnpy/api/ctp +bash build.sh +popd + +pushd vnpy/api/lts +bash build.sh +popd + +pushd vnpy/api/ib +bash build.sh +popd + +::Install Python Modules +pip install -r requirements.txt + +::Install Ta-Lib +conda install -c quantopian ta-lib=0.4.9 + +:: Install vn.py +python setup.py install + diff --git a/vnpy/api/ctp/build.sh b/vnpy/api/ctp/build.sh index 5427f2f6..8974b5fc 100644 --- a/vnpy/api/ctp/build.sh +++ b/vnpy/api/ctp/build.sh @@ -12,6 +12,6 @@ cmake .. make VERBOSE=1 -j 1 ln -fs `pwd`/lib/vnctpmd.so ../vnctpmd/test/vnctpmd.so ln -fs `pwd`/lib/vnctptd.so ../vnctptd/test/vnctptd.so -cp ../vnctpmd/test/vnctpmd.* ../../vn.trader/gateway/ctpGateway/ -cp ../vnctptd/test/vnctptd.* ../../vn.trader/gateway/ctpGateway/ +cp ../vnctpmd/test/vnctpmd.* ./ +cp ../vnctptd/test/vnctptd.* ./ popd diff --git a/vnpy/api/ib/build.sh b/vnpy/api/ib/build.sh index 948b6119..b9b36994 100644 --- a/vnpy/api/ib/build.sh +++ b/vnpy/api/ib/build.sh @@ -7,6 +7,11 @@ rm -rf $BUILDDIR if [ ! -f $BUILDDIR ]; then mkdir -p $BUILDDIR fi + +pushd ibapi/linux +bash build.sh +popd + pushd $BUILDDIR cmake .. make VERBOSE=1 -j 1