File tree 6 files changed +70
-6
lines changed
6 files changed +70
-6
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,24 @@ matrix:
30
30
- JOB_TAG=_LOCALE
31
31
- BUILD_TYPE=conda
32
32
- JOB_NAME : " 27_slow_nnet_LOCALE"
33
+ - python : 2.7
34
+ env :
35
+ - NOSE_ARGS="not slow and not disabled"
36
+ - FULL_DEPS=true
37
+ - CLIPBOARD_GUI=gtk2
38
+ - BUILD_TYPE=conda
39
+ - JOB_NAME : " 27_build_test"
40
+ - JOB_TAG=_BUILD_TEST
41
+ - BUILD_TEST=true
42
+ - python : 2.7
43
+ env :
44
+ - NOSE_ARGS="not slow and not disabled"
45
+ - FULL_DEPS=true
46
+ - CLIPBOARD_GUI=gtk2
47
+ - BUILD_TYPE=pydata
48
+ - JOB_NAME : " 27_build_test"
49
+ - JOB_TAG=_BUILD_TEST
50
+ - BUILD_TEST=true
33
51
- python : 2.7
34
52
env :
35
53
- NOSE_ARGS="not slow and not disabled"
@@ -115,6 +133,24 @@ matrix:
115
133
- NUMPY_BUILD=master
116
134
- BUILD_TYPE=pydata
117
135
- PANDAS_TESTING_MODE="deprecate"
136
+ - python : 2.7
137
+ env :
138
+ - NOSE_ARGS="not slow and not disabled"
139
+ - FULL_DEPS=true
140
+ - CLIPBOARD_GUI=gtk2
141
+ - BUILD_TYPE=conda
142
+ - JOB_NAME : " 27_build_test"
143
+ - JOB_TAG=_BUILD_TEST
144
+ - BUILD_TEST=true
145
+ - python : 2.7
146
+ env :
147
+ - NOSE_ARGS="not slow and not disabled"
148
+ - FULL_DEPS=true
149
+ - CLIPBOARD_GUI=gtk2
150
+ - BUILD_TYPE=pydata
151
+ - JOB_NAME : " 27_build_test"
152
+ - JOB_TAG=_BUILD_TEST
153
+ - BUILD_TEST=true
118
154
119
155
before_install :
120
156
- echo "before_install"
Original file line number Diff line number Diff line change @@ -96,7 +96,13 @@ if [ "$IRON_TOKEN" ]; then
96
96
export CC=' ccache gcc'
97
97
fi
98
98
99
- python setup.py build_ext --inplace && python setup.py develop
99
+ if [ " $BUILD_TEST " ]; then
100
+ pip uninstall --yes cython
101
+ pip install cython==0.15.1
102
+ ( python setup.py build_ext --inplace && python setup.py develop ) || true
103
+ else
104
+ python setup.py build_ext --inplace && python setup.py develop
105
+ fi
100
106
101
107
for package in beautifulsoup4; do
102
108
pip uninstall --yes $package
Original file line number Diff line number Diff line change @@ -137,8 +137,15 @@ if [ "$IRON_TOKEN" ]; then
137
137
fi
138
138
139
139
# build pandas
140
- python setup.py build_ext --inplace
141
- python setup.py develop
140
+ if [ " $BUILD_TEST " ]; then
141
+ pip uninstall --yes cython
142
+ pip install cython==0.15.1
143
+ ( python setup.py build_ext --inplace ) || true
144
+ ( python setup.py develop ) || true
145
+ else
146
+ python setup.py build_ext --inplace
147
+ python setup.py develop
148
+ fi
142
149
143
150
# restore cython (if not numpy building)
144
151
if [ -z " $NUMPY_BUILD " ]; then
Original file line number Diff line number Diff line change
1
+ dateutil
2
+ pytz
3
+ numpy
4
+ cython
5
+ nose
Original file line number Diff line number Diff line change 19
19
pip install -U blosc # See https://github.com/pydata/pandas/pull/9783
20
20
python -c ' import blosc; blosc.print_versions()'
21
21
22
- echo nosetests --exe -A " $NOSE_ARGS " pandas --with-xunit --xunit-file=/tmp/nosetests.xml
23
- nosetests --exe -A " $NOSE_ARGS " pandas --with-xunit --xunit-file=/tmp/nosetests.xml
22
+ if [ " $BUILD_TEST " ]; then
23
+ echo " We are not running nosetests as this is simply a build test."
24
+ else
25
+ echo nosetests --exe -A " $NOSE_ARGS " pandas --with-xunit --xunit-file=/tmp/nosetests.xml
26
+ nosetests --exe -A " $NOSE_ARGS " pandas --with-xunit --xunit-file=/tmp/nosetests.xml
27
+ fi
24
28
25
29
RET=" $? "
26
30
Original file line number Diff line number Diff line change 11
11
import shutil
12
12
import warnings
13
13
import re
14
+ from distutils .version import LooseVersion
14
15
15
16
# may need to work around setuptools bug by providing a fake Pyrex
17
+ min_cython_ver = '0.19.1'
16
18
try :
17
19
import Cython
18
20
sys .path .insert (0 , os .path .join (os .path .dirname (__file__ ), "fake_pyrex" ))
21
+ ver = Cython .__version__
22
+ _CYTHON_INSTALLED = ver >= LooseVersion (min_cython_ver )
19
23
except ImportError :
20
- pass
24
+ _CYTHON_INSTALLED = False
21
25
22
26
# try bootstrapping setuptools if it doesn't exist
23
27
try :
74
78
from distutils .command .build_ext import build_ext as _build_ext
75
79
76
80
try :
81
+ if not _CYTHON_INSTALLED :
82
+ raise ImportError ('No supported version of Cython installed.' )
77
83
from Cython .Distutils import build_ext as _build_ext
78
84
# from Cython.Distutils import Extension # to get pyrex debugging symbols
79
85
cython = True
You can’t perform that action at this time.
0 commit comments