[Fix] fixed osx build

This commit is contained in:
nanoric 2019-04-14 11:10:26 -04:00
parent 69aae4371e
commit 2c7443a7a9
2 changed files with 14 additions and 10 deletions

View File

@ -87,11 +87,9 @@ matrix:
- name: "pip install under osx" - name: "pip install under osx"
language: shell # osx supports only shell language: shell # osx supports only shell
install: install:
- alias python=python3 - python3 -m pip install --upgrade pip wheel setuptools --user python
- alias pip=pip3 - pip3 install https://pip.vnpy.com/colletion/ibapi-9.75.1-001-py3-none-any.whl
- python -m pip install --upgrade pip wheel setuptools --user python - bash ./install.sh python3 pip3
- pip install https://pip.vnpy.com/colletion/ibapi-9.75.1-001-py3-none-any.whl
- bash ./install.sh
- name: "sdist install under Windows" - name: "sdist install under Windows"
os: "windows" os: "windows"

View File

@ -1,5 +1,11 @@
#!/usr/bin/env bash #!/usr/bin/env bash
python=$1
pip=$2
[[ -z $python ]] && python=python
[[ -z $pip ]] && pip=pip
# Get and build ta-lib # Get and build ta-lib
pushd /tmp pushd /tmp
wget http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz wget http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz
@ -11,17 +17,17 @@ sudo make install
popd popd
# old versions of ta-lib imports numpy in setup.py # old versions of ta-lib imports numpy in setup.py
pip install numpy $pip install numpy
# Install extra packages # Install extra packages
pip install ta-lib $pip install ta-lib
pip install https://vnpy-pip.oss-cn-shanghai.aliyuncs.com/colletion/ibapi-9.75.1-py3-none-any.whl $pip install https://vnpy-pip.oss-cn-shanghai.aliyuncs.com/colletion/ibapi-9.75.1-py3-none-any.whl
# Install Python Modules # Install Python Modules
pip install -r requirements.txt $pip install -r requirements.txt
# Install local Chinese language environment # Install local Chinese language environment
sudo locale-gen zh_CN.GB18030 sudo locale-gen zh_CN.GB18030
# Install vn.py # Install vn.py
pip install . $pip install .