From 39930e9db378faae9d4c5da4915cba31ebb9a4cd Mon Sep 17 00:00:00 2001 From: nanoric Date: Mon, 15 Apr 2019 02:08:08 -0400 Subject: [PATCH] [Fix] try fix --- .travis.yml | 2 +- install.sh | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index b890e1ca..a23d2fae 100644 --- a/.travis.yml +++ b/.travis.yml @@ -50,7 +50,7 @@ matrix: before_install: [] install: - pip3 install https://pip.vnpy.com/colletion/ibapi-9.75.1-001-py3-none-any.whl - - bash ./install.sh python3 pip3 + - bash ./install.sh python3 pip3 /usr/local script: - pip3 install psycopg2 mongoengine pymysql # we should support all database in test environment diff --git a/install.sh b/install.sh index 3f445045..3dc936ac 100644 --- a/install.sh +++ b/install.sh @@ -2,16 +2,18 @@ python=$1 pip=$2 +prefix=$3 [[ -z $python ]] && python=python [[ -z $pip ]] && pip=pip +[[ -z $prefix ]] && prefix=/usr # Get and build ta-lib pushd /tmp wget http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz tar -xf ta-lib-0.4.0-src.tar.gz cd ta-lib -./configure --prefix=/usr/local +./configure --prefix=$prefix make sudo make install popd