Skip to content

Commit c5482fb

Browse files
committed
[Mod] 更新Ubuntu和Mac的安装脚本
1 parent d9939ab commit c5482fb

File tree

3 files changed

+14
-12
lines changed

3 files changed

+14
-12
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
10. 修改vnpy_ctastrategy使用vnpy.trader.database中统一定义的时区来加载数据
2020
11. 增加vnpy_ctastrategy策略模板的合约乘数查询函数get_size
2121
12. 增加vnpy_spreadtrading回测中统计绩效时对于爆仓情况的检查
22-
22+
13. 增加vnpy_scripttrader基于vt_symbol和direction查询持仓数据的函数
23+
14. 修改vt_positionid的字符串内容,增加gateway_name前缀标识
2324

2425
## 修复
2526

install.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ pypi_index=$2
55
shift 2
66

77

8-
[[ -z $python ]] && python=python
9-
[[ -z $pypi_index ]] && pypi_index=https://pypi.org/simple
8+
[[ -z $python ]] && python=python3
9+
[[ -z $pypi_index ]] && pypi_index=https://pypi.douban.com/simple
1010

1111
$python -m pip install --upgrade pip wheel --index $pypi_index
1212

1313
# Get and build ta-lib
1414
function install-ta-lib()
1515
{
1616
# install numpy first
17-
$python -m pip install numpy==1.21.5 --index $pypi_index
17+
$python -m pip install numpy==1.23.1 --index $pypi_index
1818

1919
pushd /tmp
2020
wget https://pip.vnpy.com/colletion/ta-lib-0.4.0-src.tar.gz
@@ -41,4 +41,3 @@ locale-gen zh_CN.GB18030
4141

4242
# Install VeighNa
4343
$python -m pip install . --index $pypi_index
44-

install_osx.sh

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
#!/usr/bin/env bash
22

33
python=$1
4-
shift 1
4+
pypi_index=$2
5+
shift 2
56

6-
[[ -z $python ]] && python=python
7+
[[ -z $python ]] && python=python3
8+
[[ -z $pypi_index ]] && pypi_index=https://pypi.douban.com/simple
79

8-
$python -m pip install --upgrade pip wheel
10+
$python -m pip install --upgrade pip wheel --index $pypi_index
911

1012
# Get and build ta-lib
1113
function install-ta-lib()
@@ -20,11 +22,11 @@ function ta-lib-exists()
2022
ta-lib-exists || install-ta-lib
2123

2224
# install ta-lib
23-
$python -m pip install numpy==1.21.5
24-
$python -m pip install ta-lib==0.4.24
25+
$python -m pip install numpy==1.23.1 --index $pypi_index
26+
$python -m pip install ta-lib==0.4.24 --index $pypi_index
2527

2628
# Install Python Modules
27-
$python -m pip install -r requirements.txt
29+
$python -m pip install -r requirements.txt --index $pypi_index
2830

2931
# Install VeighNa
30-
$python -m pip install . $@
32+
$python -m pip install . --index $pypi_index

0 commit comments

Comments
 (0)