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