Skip to content

BLD: install build deps when building #11127

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 16, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 27 additions & 17 deletions ci/install_conda.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,21 +78,13 @@ conda config --set ssl_verify false || exit 1
# Useful for debugging any issues with conda
conda info -a || exit 1

REQ="ci/requirements-${TRAVIS_PYTHON_VERSION}${JOB_TAG}.txt"
conda create -n pandas python=$TRAVIS_PYTHON_VERSION || exit 1
conda install -n pandas --file=${REQ} || exit 1

conda install -n pandas pip setuptools nose || exit 1
conda remove -n pandas pandas
# build deps
REQ="ci/requirements-${TRAVIS_PYTHON_VERSION}${JOB_TAG}.build"
time conda create -n pandas python=$TRAVIS_PYTHON_VERSION nose || exit 1
time conda install -n pandas --file=${REQ} || exit 1

source activate pandas

# we may have additional pip installs
REQ="ci/requirements-${TRAVIS_PYTHON_VERSION}${JOB_TAG}.pip"
if [ -e ${REQ} ]; then
pip install -r $REQ
fi

# set the compiler cache to work
if [ "$IRON_TOKEN" ]; then
export PATH=/usr/lib/ccache:/usr/lib64/ccache:$PATH
Expand All @@ -104,15 +96,33 @@ if [ "$IRON_TOKEN" ]; then
fi

if [ "$BUILD_TEST" ]; then

# build testing
pip uninstall --yes cython
pip install cython==0.15.1
( python setup.py build_ext --inplace && python setup.py develop ) || true

else
python setup.py build_ext --inplace && python setup.py develop
fi

for package in beautifulsoup4; do
pip uninstall --yes $package
done
# build but don't install
time python setup.py build_ext --inplace || exit 1

# we may have run installations
REQ="ci/requirements-${TRAVIS_PYTHON_VERSION}${JOB_TAG}.run"
time conda install -n pandas --file=${REQ} || exit 1

# we may have additional pip installs
REQ="ci/requirements-${TRAVIS_PYTHON_VERSION}${JOB_TAG}.pip"
if [ -e ${REQ} ]; then
pip install -r $REQ
fi

# remove any installed pandas package
conda remove pandas

# install our pandas
python setup.py develop || exit 1

fi

true
6 changes: 5 additions & 1 deletion ci/install_pydata.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ fi
# Force virtualenv to accept system_site_packages
rm -f $VIRTUAL_ENV/lib/python$TRAVIS_PYTHON_VERSION/no-global-site-packages.txt

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

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

# install the run libs
time pip install $PIP_ARGS -r ci/requirements-${wheel_box}.run

# restore cython (if not numpy building)
if [ -z "$NUMPY_BUILD" ]; then
time pip install $PIP_ARGS $(cat ci/requirements-${wheel_box}.txt | grep -i cython)
Expand Down
4 changes: 4 additions & 0 deletions ci/requirements-2.6.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
numpy=1.7.0
cython=0.19.1
dateutil=1.5
pytz=2013b
1 change: 0 additions & 1 deletion ci/requirements-2.6.txt → ci/requirements-2.6.run
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
numpy=1.7.0
cython=0.19.1
dateutil=1.5
pytz=2013b
scipy=0.11.0
Expand Down
4 changes: 4 additions & 0 deletions ci/requirements-2.7.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
dateutil=2.1
pytz=2013b
numpy=1.7.1
cython=0.19.1
5 changes: 2 additions & 3 deletions ci/requirements-2.7.txt → ci/requirements-2.7.run
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
dateutil=2.1
pytz=2013b
numpy=1.7.1
xlwt=0.7.5
numpy=1.7.0
cython=0.19.1
numexpr=2.2.2
pytables=3.0.0
matplotlib=1.3.1
Expand All @@ -12,11 +11,11 @@ sqlalchemy=0.9.6
lxml=3.2.1
scipy
xlsxwriter=0.4.6
statsmodels
boto=2.36.0
bottleneck=0.8.0
psycopg2=2.5.2
patsy
pymysql=0.6.3
html5lib=1.0b2
beautiful-soup=4.2.1
statsmodels
11 changes: 0 additions & 11 deletions ci/requirements-2.7_32.txt

This file was deleted.

11 changes: 0 additions & 11 deletions ci/requirements-2.7_64.txt

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@ dateutil
pytz
numpy
cython
nose
4 changes: 4 additions & 0 deletions ci/requirements-2.7_LOCALE.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
python-dateutil
pytz=2013b
numpy=1.7.1
cython=0.19.1
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
python-dateutil
pytz=2013b
numpy=1.7.1
xlwt=0.7.5
openpyxl=1.6.2
xlsxwriter=0.4.6
xlrd=0.9.2
numpy=1.7.1
cython=0.19.1
bottleneck=0.8.0
matplotlib=1.2.1
patsy=0.1.0
Expand Down
3 changes: 0 additions & 3 deletions ci/requirements-2.7_NUMPY_DEV_1_8_x.txt

This file was deleted.

Empty file.
4 changes: 4 additions & 0 deletions ci/requirements-2.7_SLOW.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
python-dateutil
pytz
numpy
cython
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
python-dateutil
pytz
numpy
cython
matplotlib
scipy
patsy
Expand Down
4 changes: 4 additions & 0 deletions ci/requirements-3.3.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
python-dateutil
pytz=2013b
numpy=1.8.0
cython=0.19.1
3 changes: 1 addition & 2 deletions ci/requirements-3.3.txt → ci/requirements-3.3.run
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
python-dateutil
pytz=2013b
numpy=1.8.0
openpyxl=1.6.2
xlsxwriter=0.4.6
xlrd=0.9.2
html5lib=1.0b2
numpy=1.8.0
cython=0.19.1
numexpr
pytables
bottleneck=0.8.0
Expand Down
4 changes: 4 additions & 0 deletions ci/requirements-3.4.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
python-dateutil
pytz
numpy
cython
5 changes: 2 additions & 3 deletions ci/requirements-3.4_SLOW.txt → ci/requirements-3.4.run
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
python-dateutil
pytz
numpy
openpyxl
xlsxwriter
xlrd
xlwt
html5lib
patsy
beautiful-soup
numpy
cython
scipy
numexpr
pytables
matplotlib=1.3.1
lxml
sqlalchemy
bottleneck
pymysql
pymysql=0.6.3
psycopg2
10 changes: 0 additions & 10 deletions ci/requirements-3.4_32.txt

This file was deleted.

10 changes: 0 additions & 10 deletions ci/requirements-3.4_64.txt

This file was deleted.

4 changes: 4 additions & 0 deletions ci/requirements-3.4_SLOW.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
python-dateutil
pytz
numpy
cython
6 changes: 3 additions & 3 deletions ci/requirements-3.4.txt → ci/requirements-3.4_SLOW.run
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
python-dateutil
pytz
numpy
openpyxl
xlsxwriter
xlrd
xlwt
html5lib
patsy
beautiful-soup
numpy
cython
scipy
numexpr
pytables
matplotlib
lxml
sqlalchemy
bottleneck
pymysql==0.6.3
pymysql
psycopg2
statsmodels
4 changes: 4 additions & 0 deletions ci/requirements-3.5.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
python-dateutil
pytz
numpy
cython
3 changes: 1 addition & 2 deletions ci/requirements-3.5.txt → ci/requirements-3.5.run
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
python-dateutil
pytz
numpy
openpyxl
xlsxwriter
xlrd
xlwt
patsy
numpy
cython
scipy
numexpr
pytables
Expand Down