|
14 | 14 | # |
15 | 15 |
|
16 | 16 | echo "inside $0" |
| 17 | + |
17 | 18 | # Install Dependencie |
18 | | -SITE_PKG_DIR=$VIRTUAL_ENV/lib/python$TRAVIS_PYTHON_VERSION/site-packages |
19 | | -echo "Using SITE_PKG_DIR: $SITE_PKG_DIR" |
| 19 | +# as of pip 1.4rc2, wheel files are still being broken regularly, this is a known good |
| 20 | +# commit. should revert to pypi when a final release is out |
| 21 | +pip install -I git+https://github.com/pypa/pip@42102e9deaea99db08b681d06906c2945f6f95e2#egg=pip |
| 22 | +pip Install -I https://bitbucket.org/pypa/setuptools/downloads/setuptools-0.8b6.tar.gz |
| 23 | +pip install wheel |
| 24 | + |
| 25 | +# comment this line to disable the fetching of wheel files |
| 26 | +PIP_ARGS+=" -I --use-wheel --find-links=https://cache27-pypandas.rhcloud.com/" |
20 | 27 |
|
21 | | -# workaround for travis ignoring system_site_packages in travis.yml |
| 28 | +# Force virtualenv to accpet system_site_packages |
22 | 29 | rm -f $VIRTUAL_ENV/lib/python$TRAVIS_PYTHON_VERSION/no-global-site-packages.txt |
23 | 30 |
|
24 | 31 | if [ x"$LOCALE_OVERRIDE" != x"" ]; then |
|
30 | 37 | #scipy is not included in the cached venv |
31 | 38 | if [ x"$FULL_DEPS" == x"true" ] ; then |
32 | 39 | # for pytables gets the lib as well |
33 | | - sudo apt-get $APT_ARGS install libhdf5-serial-dev |
| 40 | + time sudo apt-get $APT_ARGS install libhdf5-serial-dev |
34 | 41 |
|
35 | 42 | if [ ${TRAVIS_PYTHON_VERSION:0:1} == "3" ]; then |
36 | | - sudo apt-get $APT_ARGS install python3-bs4 |
| 43 | + time sudo apt-get $APT_ARGS install python3-bs4 |
37 | 44 | elif [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then |
38 | | - sudo apt-get $APT_ARGS install python-bs4 |
| 45 | + time sudo apt-get $APT_ARGS install python-bs4 |
39 | 46 | fi |
40 | 47 |
|
41 | 48 | if [ ${TRAVIS_PYTHON_VERSION} == "3.2" ]; then |
42 | | - sudo apt-get $APT_ARGS install python3-scipy |
| 49 | + time sudo apt-get $APT_ARGS install python3-scipy |
43 | 50 | elif [ ${TRAVIS_PYTHON_VERSION} == "2.7" ]; then |
44 | | - sudo apt-get $APT_ARGS install python-scipy |
| 51 | + time sudo apt-get $APT_ARGS install python-scipy |
45 | 52 | fi |
46 | 53 | fi |
47 | 54 |
|
48 | 55 | # Hard Deps |
49 | | -pip install $PIP_ARGS nose python-dateutil pytz |
50 | | -pip install $PIP_ARGS cython |
| 56 | +time pip install $PIP_ARGS nose python-dateutil pytz>=2013a |
| 57 | +time pip install $PIP_ARGS cython==0.19.1 |
51 | 58 |
|
52 | 59 | if [ ${TRAVIS_PYTHON_VERSION} == "3.3" ]; then # should be >=3,3 |
53 | | - pip install $PIP_ARGS numpy==1.7.0 |
| 60 | + time pip install $PIP_ARGS numpy==1.7.1 |
54 | 61 | elif [ ${TRAVIS_PYTHON_VERSION} == "3.2" ]; then |
55 | 62 | # sudo apt-get $APT_ARGS install python3-numpy; # 1.6.2 or precise |
56 | | - pip install $PIP_ARGS numpy==1.6.1 |
| 63 | + time pip install $PIP_ARGS numpy==1.6.1 |
57 | 64 | else |
58 | | - pip install $PIP_ARGS numpy==1.6.1 |
| 65 | + time pip install $PIP_ARGS numpy==1.6.1 |
59 | 66 | fi |
60 | 67 |
|
61 | 68 | # Optional Deps |
62 | 69 | if [ x"$FULL_DEPS" == x"true" ]; then |
63 | 70 | echo "Installing FULL_DEPS" |
64 | | - pip install $PIP_ARGS cython |
65 | 71 |
|
66 | 72 | if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then |
67 | | - pip install $PIP_ARGS xlwt |
68 | | - pip install $PIP_ARGS bottleneck |
69 | | - pip install $PIP_ARGS numexpr==2.0.1 |
70 | | - pip install $PIP_ARGS tables==2.3.1 |
| 73 | + time pip install $PIP_ARGS xlwt |
| 74 | + time pip install $PIP_ARGS bottleneck==0.6.0 |
| 75 | + time pip install $PIP_ARGS numexpr==2.1 |
| 76 | + time pip install $PIP_ARGS tables==2.3.1 |
71 | 77 | else |
72 | | - pip install $PIP_ARGS numexpr |
73 | | - pip install $PIP_ARGS tables |
| 78 | + time pip install $PIP_ARGS numexpr==2.1 |
| 79 | + time pip install $PIP_ARGS tables==3.0.0 |
74 | 80 | fi |
75 | 81 |
|
76 | | - pip install $PIP_ARGS matplotlib |
77 | | - pip install $PIP_ARGS openpyxl |
78 | | - pip install $PIP_ARGS xlrd>=0.9.0 |
79 | | - pip install $PIP_ARGS 'http://downloads.sourceforge.net/project/pytseries/scikits.timeseries/0.91.3/scikits.timeseries-0.91.3.tar.gz?r=' |
80 | | - pip install $PIP_ARGS patsy |
81 | | - pip install $PIP_ARGS html5lib |
| 82 | + time pip install $PIP_ARGS matplotlib==1.2.1 |
| 83 | + time pip install $PIP_ARGS openpyxl |
| 84 | + time pip install $PIP_ARGS xlrd>=0.9.0 |
| 85 | + time pip install $PIP_ARGS 'http://downloads.sourceforge.net/project/pytseries/scikits.timeseries/0.91.3/scikits.timeseries-0.91.3.tar.gz?r=' |
| 86 | + time pip install $PIP_ARGS patsy |
| 87 | + time pip install $PIP_ARGS html5lib |
82 | 88 |
|
83 | 89 | if [ ${TRAVIS_PYTHON_VERSION:0:1} == "3" ]; then |
84 | | - sudo apt-get $APT_ARGS remove python3-lxml |
| 90 | + time sudo apt-get $APT_ARGS remove python3-lxml |
85 | 91 | elif [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then |
86 | | - sudo apt-get $APT_ARGS remove python-lxml |
| 92 | + time sudo apt-get $APT_ARGS remove python-lxml |
87 | 93 | fi |
88 | 94 |
|
89 | | - pip install $PIP_ARGS lxml |
90 | 95 | # fool statsmodels into thinking pandas was already installed |
91 | 96 | # so it won't refuse to install itself. |
92 | 97 |
|
93 | 98 | mkdir $SITE_PKG_DIR/pandas |
94 | 99 | touch $SITE_PKG_DIR/pandas/__init__.py |
95 | 100 | echo "version='0.10.0-phony'" > $SITE_PKG_DIR/pandas/version.py |
96 | | - pip install $PIP_ARGS git+git://github.com/statsmodels/statsmodels@c9062e43b8a5f7385537ca95#egg=statsmodels |
| 101 | + time pip install $PIP_ARGS git+git://github.com/statsmodels/statsmodels@c9062e43b8a5f7385537ca95#egg=statsmodels |
97 | 102 |
|
98 | 103 | rm -Rf $SITE_PKG_DIR/pandas # scrub phoney pandas |
99 | 104 | fi |
100 | 105 |
|
101 | 106 | # build pandas |
102 | | -python setup.py build_ext install |
| 107 | +time python setup.py build_ext install |
103 | 108 |
|
104 | 109 | true |
0 commit comments