添加linux下的快速安装脚本install.sh
This commit is contained in:
parent
d2650e02ef
commit
47295a25a2
24
install.sh
Normal file
24
install.sh
Normal 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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user