添加linux下的快速安装脚本install.sh

This commit is contained in:
vn.py 2017-07-15 17:02:47 +08:00
parent d2650e02ef
commit 47295a25a2
3 changed files with 31 additions and 2 deletions

24
install.sh Normal file
View File

@ -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

View File

@ -12,6 +12,6 @@ cmake ..
make VERBOSE=1 -j 1 make VERBOSE=1 -j 1
ln -fs `pwd`/lib/vnctpmd.so ../vnctpmd/test/vnctpmd.so ln -fs `pwd`/lib/vnctpmd.so ../vnctpmd/test/vnctpmd.so
ln -fs `pwd`/lib/vnctptd.so ../vnctptd/test/vnctptd.so ln -fs `pwd`/lib/vnctptd.so ../vnctptd/test/vnctptd.so
cp ../vnctpmd/test/vnctpmd.* ../../vn.trader/gateway/ctpGateway/ cp ../vnctpmd/test/vnctpmd.* ./
cp ../vnctptd/test/vnctptd.* ../../vn.trader/gateway/ctpGateway/ cp ../vnctptd/test/vnctptd.* ./
popd popd

View File

@ -7,6 +7,11 @@ rm -rf $BUILDDIR
if [ ! -f $BUILDDIR ]; then if [ ! -f $BUILDDIR ]; then
mkdir -p $BUILDDIR mkdir -p $BUILDDIR
fi fi
pushd ibapi/linux
bash build.sh
popd
pushd $BUILDDIR pushd $BUILDDIR
cmake .. cmake ..
make VERBOSE=1 -j 1 make VERBOSE=1 -j 1