@@ -45,102 +45,60 @@ if [ x"$FULL_DEPS" == x"true" ] ; then
45
45
fi
46
46
fi
47
47
48
- # Everything installed inside this clause into site-packages
49
- # will get included in the cached venv downloaded from the net
50
- # in PTF mode
51
- if ( ! $VENV_FILE_AVAILABLE ); then
52
- echo " Running full monty"
53
- # Hard Deps
54
- pip install $PIP_ARGS nose python-dateutil pytz
48
+ # Hard Deps
49
+ pip install $PIP_ARGS nose python-dateutil pytz
50
+ pip install $PIP_ARGS cython
51
+
52
+ if [ ${TRAVIS_PYTHON_VERSION} == " 3.3" ]; then # should be >=3,3
53
+ pip install $PIP_ARGS numpy==1.7.0
54
+ elif [ ${TRAVIS_PYTHON_VERSION} == " 3.2" ]; then
55
+ # sudo apt-get $APT_ARGS install python3-numpy; # 1.6.2 or precise
56
+ pip install $PIP_ARGS numpy==1.6.1
57
+ else
58
+ pip install $PIP_ARGS numpy==1.6.1
59
+ fi
60
+
61
+ # Optional Deps
62
+ if [ x" $FULL_DEPS " == x" true" ]; then
63
+ echo " Installing FULL_DEPS"
55
64
pip install $PIP_ARGS cython
56
65
57
- if [ ${TRAVIS_PYTHON_VERSION} == " 3.3 " ]; then # should be >=3,3
58
- pip install $PIP_ARGS numpy==1.7.0
59
- elif [ ${TRAVIS_PYTHON_VERSION} == " 3.2 " ] ; then
60
- # sudo apt-get $APT_ARGS install python3-numpy; # 1.6.2 or precise
61
- pip install $PIP_ARGS numpy==1.6 .1
66
+ 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
62
71
else
63
- pip install $PIP_ARGS numpy==1.6.1
72
+ pip install $PIP_ARGS numexpr
73
+ pip install $PIP_ARGS tables
64
74
fi
65
75
66
- # Optional Deps
67
- if [ x" $FULL_DEPS " == x" true" ]; then
68
- echo " Installing FULL_DEPS"
69
- pip install $PIP_ARGS cython
70
-
71
- if [ ${TRAVIS_PYTHON_VERSION: 0: 1} == " 2" ]; then
72
- pip install $PIP_ARGS xlwt
73
- pip install $PIP_ARGS bottleneck
74
- pip install $PIP_ARGS numexpr==2.0.1
75
- pip install $PIP_ARGS tables==2.3.1
76
- else
77
- pip install $PIP_ARGS numexpr
78
- pip install $PIP_ARGS tables
79
- fi
80
-
81
- pip install $PIP_ARGS matplotlib
82
- pip install $PIP_ARGS openpyxl
83
- pip install $PIP_ARGS xlrd> =0.9.0
84
- pip install $PIP_ARGS ' http://downloads.sourceforge.net/project/pytseries/scikits.timeseries/0.91.3/scikits.timeseries-0.91.3.tar.gz?r='
85
- pip install $PIP_ARGS patsy
86
- pip install $PIP_ARGS html5lib
87
-
88
- if [ ${TRAVIS_PYTHON_VERSION: 0: 1} == " 3" ]; then
89
- sudo apt-get $APT_ARGS remove python3-lxml
90
- elif [ ${TRAVIS_PYTHON_VERSION: 0: 1} == " 2" ]; then
91
- sudo apt-get $APT_ARGS remove python-lxml
92
- fi
93
-
94
- pip install $PIP_ARGS lxml
95
- # fool statsmodels into thinking pandas was already installed
96
- # so it won't refuse to install itself. We want it in the zipped venv
97
-
98
- mkdir $SITE_PKG_DIR /pandas
99
- touch $SITE_PKG_DIR /pandas/__init__.py
100
- echo " version='0.10.0-phony'" > $SITE_PKG_DIR /pandas/version.py
101
- pip install $PIP_ARGS git+git://github.com/statsmodels/statsmodels@c9062e43b8a5f7385537ca95#egg=statsmodels
102
-
103
- rm -Rf $SITE_PKG_DIR /pandas # scrub phoney pandas
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
+
83
+ if [ ${TRAVIS_PYTHON_VERSION: 0: 1} == " 3" ]; then
84
+ sudo apt-get $APT_ARGS remove python3-lxml
85
+ elif [ ${TRAVIS_PYTHON_VERSION: 0: 1} == " 2" ]; then
86
+ sudo apt-get $APT_ARGS remove python-lxml
104
87
fi
105
88
106
- # pack up the venv and cache it
107
- if [ x" $STORE_KEY " != x" " ] && $UPLOAD && $PLEASE_TRAVIS_FASTER ; then
108
- VENV_FNAME=" venv-$TRAVIS_PYTHON_VERSION .zip"
109
-
110
- zip $ZIP_FLAGS -r " $HOME /$VENV_FNAME " $SITE_PKG_DIR /
111
- ls -l " $HOME /$VENV_FNAME "
112
- echo " posting venv"
113
- # silent, don't expose key
114
- curl -s --form upload=@" $HOME /$VENV_FNAME " " $CACHE_FILE_STORE_URL /$VENV_FNAME "
115
- fi
89
+ pip install $PIP_ARGS lxml
90
+ # fool statsmodels into thinking pandas was already installed
91
+ # so it won't refuse to install itself.
116
92
117
- fi ;
93
+ mkdir $SITE_PKG_DIR /pandas
94
+ touch $SITE_PKG_DIR /pandas/__init__.py
95
+ 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
118
97
119
- # build and install pandas
120
- if [ x" $BUILD_CACHE_DIR " != x" " ]; then
121
- scripts/use_build_cache.py -d
122
- python setup.py install;
123
- else
124
- python setup.py build_ext install
98
+ rm -Rf $SITE_PKG_DIR /pandas # scrub phoney pandas
125
99
fi
126
100
127
- # package pandas build artifacts and send them home
128
- # that's everything the build cache (scripts/use_build_cache.py)
129
- # stored during the build (.so, pyx->.c and 2to3)
130
- if (! $CACHE_FILE_AVAILABLE ) ; then
131
- if [ x" $STORE_KEY " != x" " ] && $UPLOAD && $PLEASE_TRAVIS_FASTER ; then
132
- echo " Posting artifacts"
133
- strip " $BUILD_CACHE_DIR /*" & > /dev/null
134
- echo " $BUILD_CACHE_DIR "
135
- cd " $BUILD_CACHE_DIR " /
136
- zip -r $ZIP_FLAGS " $HOME /$CYTHON_HASH " .zip *
137
- cd " $TRAVIS_BUILD_DIR "
138
- pwd
139
- zip " $HOME /$CYTHON_HASH " .zip $( find pandas | grep -P ' \.(pyx|pxd)$' | sed -r ' s/.(pyx|pxd)$/.c/' )
140
-
141
- # silent, don't expose key
142
- curl --connect-timeout 5 -s --form upload=@" $HOME /$CYTHON_HASH " .zip " $CACHE_FILE_STORE_URL /$CYTHON_HASH .zip"
143
- fi
144
- fi
101
+ # build pandas
102
+ python setup.py build_ext install
145
103
146
104
true
0 commit comments