forked from pandas-dev/pandas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·75 lines (60 loc) · 2.28 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#!/bin/bash
echo "inside $0"
# Install Dependencies
# workaround for travis ignoring system_site_packages in travis.yml
rm -f $VIRTUAL_ENV/lib/python$TRAVIS_PYTHON_VERSION/no-global-site-packages.txt
# Hard Deps
pip install $PIP_ARGS --use-mirrors cython nose python-dateutil pytz
# try and get numpy as a binary deb
# numpy is preinstalled on 2.x
# if [ ${TRAVIS_PYTHON_VERSION} == "2.7" ]; then
# sudo apt-get $APT_ARGS install python-numpy;
# fi
if [ ${TRAVIS_PYTHON_VERSION} == "3.2" ]; then
sudo apt-get $APT_ARGS install python3-numpy;
fi
# or else, get it with pip and compile it
if [ ${TRAVIS_PYTHON_VERSION} == "2.6" ]; then
pip $PIP_ARGS install numpy;
elif [ ${TRAVIS_PYTHON_VERSION} == "3.3" ]; then # should be >=3,3
pip $PIP_ARGS install https://github.com/numpy/numpy/archive/v1.7.0.tar.gz;
fi
# Optional Deps
if [ x"$FULL_DEPS" == x"true" ]; then
echo "Installing FULL_DEPS"
if [ ${TRAVIS_PYTHON_VERSION} == "2.7" ]; then
sudo apt-get $APT_ARGS install python-scipy;
fi
if [ ${TRAVIS_PYTHON_VERSION} == "3.2" ]; then
sudo apt-get $APT_ARGS install python3-scipy;
fi
if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then
sudo apt-get $APT_ARGS install libhdf5-serial-dev;
pip install numexpr
pip install tables
fi
pip install $PIP_ARGS --use-mirrors openpyxl matplotlib;
pip install $PIP_ARGS --use-mirrors xlrd xlwt;
pip install $PIP_ARGS 'http://downloads.sourceforge.net/project/pytseries/scikits.timeseries/0.91.3/scikits.timeseries-0.91.3.tar.gz?r='
fi
if [ x"$VBENCH" == x"true" ]; then
if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then
sudo apt-get $APT_ARGS install libhdf5-serial-dev;
pip install numexpr
pip install tables
fi
pip $PIP_ARGS install sqlalchemy git+git://github.com/pydata/vbench.git;
fi
#build and install pandas
python setup.py build_ext install
#HACK: pandas is a statsmodels dependency
# so we need to install it after pandas
if [ x"$FULL_DEPS" == x"true" ]; then
pip install patsy
# pick recent 0.5dev dec/2012
pip install git+git://github.com/statsmodels/statsmodels@c9062e43b8a5f7385537ca95#egg=statsmodels
fi;
# make sure the desired locale is generated
if [ x"$LOCALE_OVERRIDE" != x"" ]; then
sudo locale-gen "$LOCALE_OVERRIDE"
fi