-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Mod] use python -m pip instead of pip
ibapi & rqdatac is installed from 3rd-party source. old version of pip can't handle this correctly. upgrading pip might make /usr/bin/pip(3) unable to execute. So python -m pip is safer to run pip.
- Loading branch information
Showing
4 changed files
with
27 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ matrix: | |
include: | ||
- name: "code quality analysis: flake8" | ||
before_install: | ||
- pip install flake8 | ||
- python -m pip install flake8 | ||
install: | ||
- "" # prevent running "pip install -r requirements.txt" | ||
script: | ||
|
@@ -48,7 +48,7 @@ matrix: | |
# update pip & setuptools | ||
- python -m pip install --upgrade pip wheel setuptools | ||
# Linux install script | ||
- pip install https://pip.vnpy.com/colletion/ibapi-9.75.1-001-py3-none-any.whl | ||
- python -m pip install https://pip.vnpy.com/colletion/ibapi-9.75.1-001-py3-none-any.whl | ||
- bash ./install.sh | ||
|
||
- name: "sdist install under Ubuntu: gcc-7" | ||
|
@@ -73,19 +73,19 @@ matrix: | |
- make | ||
- sudo make install | ||
- popd | ||
- pip install numpy | ||
- pip install --pre --extra-index-url https://rquser:[email protected]/simple/ rqdatac | ||
- pip install https://pip.vnpy.com/colletion/ibapi-9.75.1-001-py3-none-any.whl | ||
- python -m pip install numpy | ||
- python -m pip install --pre --extra-index-url https://rquser:[email protected]/simple/ rqdatac | ||
- python -m pip install https://pip.vnpy.com/colletion/ibapi-9.75.1-001-py3-none-any.whl | ||
- python setup.py sdist | ||
- pip install dist/`ls dist` | ||
- python -m pip install dist/`ls dist` | ||
|
||
- name: "pip install under osx" | ||
os: osx | ||
language: shell # osx supports only shell | ||
services: [] | ||
before_install: [] | ||
install: | ||
- pip3 install https://pip.vnpy.com/colletion/ibapi-9.75.1-001-py3-none-any.whl | ||
- python -m pip install https://pip.vnpy.com/colletion/ibapi-9.75.1-001-py3-none-any.whl | ||
- bash ./install_osx.sh | ||
before_script: [] | ||
script: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,10 +53,10 @@ for: | |
- configuration: sdist | ||
build_script: | ||
- python setup.py sdist | ||
- pip install --pre --extra-index-url https://rquser:[email protected]/simple/ rqdatac | ||
- pip install https://pip.vnpy.com/colletion/TA_Lib-0.4.17-cp37-cp37m-win_amd64.whl | ||
- pip install https://pip.vnpy.com/colletion/ibapi-9.75.1-001-py3-none-any.whl | ||
- ps: $name=(ls dist).name; pip install "dist/$name" | ||
- python -m pip install --pre --extra-index-url https://rquser:[email protected]/simple/ rqdatac | ||
- python -m pip install https://pip.vnpy.com/colletion/TA_Lib-0.4.17-cp37-cp37m-win_amd64.whl | ||
- python -m pip install https://pip.vnpy.com/colletion/ibapi-9.75.1-001-py3-none-any.whl | ||
- ps: $name=(ls dist).name; python -m pip install "dist/$name" | ||
|
||
test_script: | ||
- cd tests | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
:: Upgrade pip & setuptools | ||
python -m pip install --upgrade pip setuptools | ||
|
||
::Install talib and ibapi | ||
pip install https://pip.vnpy.com/colletion/rqdatac-2.1.0.tar.gz | ||
pip install https://pip.vnpy.com/colletion/TA_Lib-0.4.17-cp37-cp37m-win_amd64.whl | ||
pip install https://pip.vnpy.com/colletion/ibapi-9.75.1-001-py3-none-any.whl | ||
python -m pip install https://pip.vnpy.com/colletion/rqdatac-2.1.0.tar.gz | ||
python -m pip install https://pip.vnpy.com/colletion/TA_Lib-0.4.17-cp37-cp37m-win_amd64.whl | ||
python -m pip install https://pip.vnpy.com/colletion/ibapi-9.75.1-001-py3-none-any.whl | ||
|
||
::Install Python Modules | ||
pip install -r requirements.txt | ||
python -m pip install -r requirements.txt | ||
|
||
:: Install vn.py | ||
pip install . | ||
python -m pip install . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
#!/usr/bin/env bash | ||
|
||
python=$1 | ||
pip=$2 | ||
prefix=$3 | ||
|
||
[[ -z $python ]] && python=python | ||
[[ -z $pip ]] && pip=pip | ||
[[ -z $prefix ]] && prefix=/usr | ||
|
||
$python -m pip install --upgrade pip setuptools wheel | ||
|
||
# Get and build ta-lib | ||
pushd /tmp | ||
wget http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz | ||
|
@@ -19,18 +19,18 @@ sudo make install | |
popd | ||
|
||
# old versions of ta-lib imports numpy in setup.py | ||
$pip install numpy | ||
$python -m pip install numpy | ||
|
||
# Install extra packages | ||
$pip install --pre --extra-index-url https://rquser:[email protected]/simple/ rqdatac | ||
$pip install ta-lib | ||
$pip install https://vnpy-pip.oss-cn-shanghai.aliyuncs.com/colletion/ibapi-9.75.1-py3-none-any.whl | ||
$python -m pip install --pre --extra-index-url https://rquser:[email protected]/simple/ rqdatac | ||
$python -m pip install ta-lib | ||
$python -m pip install https://vnpy-pip.oss-cn-shanghai.aliyuncs.com/colletion/ibapi-9.75.1-py3-none-any.whl | ||
|
||
# Install Python Modules | ||
$pip install -r requirements.txt | ||
$python -m pip install -r requirements.txt | ||
|
||
# Install local Chinese language environment | ||
sudo locale-gen zh_CN.GB18030 | ||
|
||
# Install vn.py | ||
$pip install . | ||
$python -m pip install . |