@@ -6,30 +6,8 @@ echo "inside $0"
6
6
# workaround for travis ignoring system_site_packages in travis.yml
7
7
rm -f $VIRTUAL_ENV /lib/python$TRAVIS_PYTHON_VERSION /no-global-site-packages.txt
8
8
9
- function pip_install {
10
- NAME=" $1 "
11
- if [ x" $2 " != x" $2 " ]; then
12
- NAME=$2 ;
13
- fi
14
- echo " travis_fold:begin:$NAME "
15
- pip install $PIP_ARGS " $1 "
16
- echo " travis_fold:end:$NAME "
17
- }
18
- function apt_install {
19
- NAME=$1
20
- if [ x" $2 " != x" !2" ]; then
21
- NAME=$2 ;
22
- fi
23
- echo " travis_fold:begin:$NAME "
24
- sudo apt-get install $APT_ARGS " $1 "
25
- echo " travis_fold:end:$NAME "
26
- }
27
-
28
9
# Hard Deps
29
- pip_install cython
30
- pip_install nose
31
- pip_install python-dateutil
32
- pip_install pytz
10
+ pip install $PIP_ARGS --use-mirrors cython nose python-dateutil pytz
33
11
34
12
# try and get numpy as a binary deb
35
13
@@ -39,63 +17,59 @@ pip_install pytz
39
17
# fi
40
18
41
19
if [ ${TRAVIS_PYTHON_VERSION} == " 3.2" ]; then
42
- apt_install python3-numpy;
20
+ sudo apt-get $APT_ARGS install python3-numpy;
43
21
elif [ ${TRAVIS_PYTHON_VERSION} == " 3.3" ] || [ x" $LOCALE_OVERRIDE " != x" " ]; then # should be >=3,3
44
- pip_install numpy==1 .7.0
22
+ pip $PIP_ARGS install https://github.com/ numpy/numpy/archive/v1 .7.0.tar.gz ;
45
23
else
46
- pip_install numpy==1.6.1
24
+ pip install numpy==1.6.1
47
25
fi
48
26
49
27
# Optional Deps
50
28
if [ x" $FULL_DEPS " == x" true" ]; then
51
29
echo " Installing FULL_DEPS"
52
30
if [ ${TRAVIS_PYTHON_VERSION} == " 2.7" ]; then
53
- apt_install python-scipy;
31
+ sudo apt-get $APT_ARGS install python-scipy;
54
32
fi
55
33
56
34
if [ ${TRAVIS_PYTHON_VERSION} == " 3.2" ]; then
57
- apt_install $APT_ARGS install python3-scipy;
35
+ sudo apt-get $APT_ARGS install python3-scipy;
58
36
fi
59
37
60
38
if [ ${TRAVIS_PYTHON_VERSION: 0: 1} == " 2" ]; then
61
39
sudo apt-get $APT_ARGS install libhdf5-serial-dev;
62
- pip_install numexpr
63
- pip_install tables
40
+ pip install numexpr
41
+ pip install tables
64
42
fi
65
43
66
- pip_install matplotlib;
67
- pip_install openpyxl;
68
- pip_install xlwt;
69
- pip_install xlrd ;
70
- pip_install ' http://downloads.sourceforge.net/project/pytseries/scikits.timeseries/0.91.3/scikits.timeseries-0.91.3.tar.gz?r=' scikit.timeseries
44
+ pip install $PIP_ARGS --use-mirrors openpyxl matplotlib;
45
+ pip install $PIP_ARGS --use-mirrors xlrd xlwt;
46
+ pip install $PIP_ARGS ' http://downloads.sourceforge.net/project/pytseries/scikits.timeseries/0.91.3/scikits.timeseries-0.91.3.tar.gz?r='
71
47
fi
72
48
73
- # if [ x"$VBENCH" == x"true" ]; then
74
- # if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then
75
- # sudo apt-get $APT_ARGS install libhdf5-serial-dev;
76
- # pip install numexpr
77
- # pip install tables
78
- # fi
79
- # pip $PIP_ARGS install sqlalchemy git+git://github.com/pydata/vbench.git;
80
- # fi
49
+ if [ x" $VBENCH " == x" true" ]; then
50
+ if [ ${TRAVIS_PYTHON_VERSION: 0: 1} == " 2" ]; then
51
+ sudo apt-get $APT_ARGS install libhdf5-serial-dev;
52
+ pip install numexpr
53
+ pip install tables
54
+ fi
55
+ pip $PIP_ARGS install sqlalchemy git+git://github.com/pydata/vbench.git;
56
+ fi
81
57
82
58
# build and install pandas
83
- echo " travis_fold:begin:pandas-install"
84
59
python setup.py build_ext install
85
- echo " travis_fold:end:pandas-install"
86
60
87
61
# HACK: pandas is a statsmodels dependency
88
62
# so we need to install it after pandas
89
63
if [ x" $FULL_DEPS " == x" true" ]; then
90
- pip_install patsy
64
+ pip install patsy
91
65
# pick recent 0.5dev dec/2012
92
- pip_install git+git://github.com/statsmodels/statsmodels@c9062e43b8a5f7385537ca95#egg=statsmodels statsmodels
66
+ pip install git+git://github.com/statsmodels/statsmodels@c9062e43b8a5f7385537ca95#egg=statsmodels
93
67
fi ;
94
68
95
69
# make sure the desired locale is generated
96
70
if [ x" $LOCALE_OVERRIDE " != x" " ]; then
97
71
# piggyback this build for plotting tests. oh boy.
98
- pip_install matplotlib;
72
+ pip install $PIP_ARGS --use-mirrors matplotlib;
99
73
100
74
sudo locale-gen " $LOCALE_OVERRIDE "
101
75
fi
0 commit comments