Skip to content

Commit 2102b68

Browse files
committed
Merge pull request #11127 from jreback/ci
BLD: install build deps when building
2 parents e198bed + a4138bd commit 2102b68

26 files changed

+74
-81
lines changed

ci/install_conda.sh

Lines changed: 27 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -78,21 +78,13 @@ conda config --set ssl_verify false || exit 1
7878
# Useful for debugging any issues with conda
7979
conda info -a || exit 1
8080

81-
REQ="ci/requirements-${TRAVIS_PYTHON_VERSION}${JOB_TAG}.txt"
82-
conda create -n pandas python=$TRAVIS_PYTHON_VERSION || exit 1
83-
conda install -n pandas --file=${REQ} || exit 1
84-
85-
conda install -n pandas pip setuptools nose || exit 1
86-
conda remove -n pandas pandas
81+
# build deps
82+
REQ="ci/requirements-${TRAVIS_PYTHON_VERSION}${JOB_TAG}.build"
83+
time conda create -n pandas python=$TRAVIS_PYTHON_VERSION nose || exit 1
84+
time conda install -n pandas --file=${REQ} || exit 1
8785

8886
source activate pandas
8987

90-
# we may have additional pip installs
91-
REQ="ci/requirements-${TRAVIS_PYTHON_VERSION}${JOB_TAG}.pip"
92-
if [ -e ${REQ} ]; then
93-
pip install -r $REQ
94-
fi
95-
9688
# set the compiler cache to work
9789
if [ "$IRON_TOKEN" ]; then
9890
export PATH=/usr/lib/ccache:/usr/lib64/ccache:$PATH
@@ -104,15 +96,33 @@ if [ "$IRON_TOKEN" ]; then
10496
fi
10597

10698
if [ "$BUILD_TEST" ]; then
99+
100+
# build testing
107101
pip uninstall --yes cython
108102
pip install cython==0.15.1
109103
( python setup.py build_ext --inplace && python setup.py develop ) || true
104+
110105
else
111-
python setup.py build_ext --inplace && python setup.py develop
112-
fi
113106

114-
for package in beautifulsoup4; do
115-
pip uninstall --yes $package
116-
done
107+
# build but don't install
108+
time python setup.py build_ext --inplace || exit 1
109+
110+
# we may have run installations
111+
REQ="ci/requirements-${TRAVIS_PYTHON_VERSION}${JOB_TAG}.run"
112+
time conda install -n pandas --file=${REQ} || exit 1
113+
114+
# we may have additional pip installs
115+
REQ="ci/requirements-${TRAVIS_PYTHON_VERSION}${JOB_TAG}.pip"
116+
if [ -e ${REQ} ]; then
117+
pip install -r $REQ
118+
fi
119+
120+
# remove any installed pandas package
121+
conda remove pandas
122+
123+
# install our pandas
124+
python setup.py develop || exit 1
125+
126+
fi
117127

118128
true

ci/install_pydata.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ fi
9090
# Force virtualenv to accept system_site_packages
9191
rm -f $VIRTUAL_ENV/lib/python$TRAVIS_PYTHON_VERSION/no-global-site-packages.txt
9292

93-
time pip install $PIP_ARGS -r ci/requirements-${wheel_box}.txt
93+
# build deps
94+
time pip install $PIP_ARGS -r ci/requirements-${wheel_box}.build
9495

9596
# Need to enable for locale testing. The location of the locale file(s) is
9697
# distro specific. For example, on Arch Linux all of the locales are in a
@@ -147,6 +148,9 @@ else
147148
python setup.py develop
148149
fi
149150

151+
# install the run libs
152+
time pip install $PIP_ARGS -r ci/requirements-${wheel_box}.run
153+
150154
# restore cython (if not numpy building)
151155
if [ -z "$NUMPY_BUILD" ]; then
152156
time pip install $PIP_ARGS $(cat ci/requirements-${wheel_box}.txt | grep -i cython)

ci/requirements-2.6.build

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
numpy=1.7.0
2+
cython=0.19.1
3+
dateutil=1.5
4+
pytz=2013b

ci/requirements-2.6.txt renamed to ci/requirements-2.6.run

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
numpy=1.7.0
2-
cython=0.19.1
32
dateutil=1.5
43
pytz=2013b
54
scipy=0.11.0

ci/requirements-2.7.build

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
dateutil=2.1
2+
pytz=2013b
3+
numpy=1.7.1
4+
cython=0.19.1
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
dateutil=2.1
22
pytz=2013b
3+
numpy=1.7.1
34
xlwt=0.7.5
4-
numpy=1.7.0
5-
cython=0.19.1
65
numexpr=2.2.2
76
pytables=3.0.0
87
matplotlib=1.3.1
@@ -12,11 +11,11 @@ sqlalchemy=0.9.6
1211
lxml=3.2.1
1312
scipy
1413
xlsxwriter=0.4.6
15-
statsmodels
1614
boto=2.36.0
1715
bottleneck=0.8.0
1816
psycopg2=2.5.2
1917
patsy
2018
pymysql=0.6.3
2119
html5lib=1.0b2
2220
beautiful-soup=4.2.1
21+
statsmodels

ci/requirements-2.7_32.txt

Lines changed: 0 additions & 11 deletions
This file was deleted.

ci/requirements-2.7_64.txt

Lines changed: 0 additions & 11 deletions
This file was deleted.

ci/requirements-2.7_BUILD_TEST.txt renamed to ci/requirements-2.7_BUILD_TEST.build

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@ dateutil
22
pytz
33
numpy
44
cython
5-
nose

ci/requirements-2.7_LOCALE.build

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
python-dateutil
2+
pytz=2013b
3+
numpy=1.7.1
4+
cython=0.19.1

0 commit comments

Comments
 (0)