Skip to content

Commit

Permalink
Fix build issue under cp27-cp27m-manylinux1 (#588)
Browse files Browse the repository at this point in the history
  • Loading branch information
wjsi authored and hekaisheng committed Jul 30, 2019
1 parent f67ff1f commit 6d200d0
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 7 deletions.
13 changes: 11 additions & 2 deletions bin/travis-build-wheels.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,19 @@ set -e -x
# Install a system package required by our library
yum install -y atlas-devel

# Compile wheels
# Install requirements
PYBIN=/opt/python/${PYVER}/bin
"${PYBIN}/pip" install -r /io/requirements-wheel.txt
REQ_FILE=/io/requirements-wheel.txt

# install packages without pandas first
# todo remove this section when dropping support for Python 2.7
REQ_FILE_NO_PD=/tmp/requirements-no-pd.txt
grep -v "pandas" $REQ_FILE > $REQ_FILE_NO_PD
"${PYBIN}/pip" install -r $REQ_FILE_NO_PD

"${PYBIN}/pip" install -r $REQ_FILE

# Compile wheels
cd /io
"${PYBIN}/python" setup.py bdist_wheel

Expand Down
6 changes: 4 additions & 2 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
numpy>=1.14.0
pandas>=0.20.0
numpy>=1.14.0; python_version >= '3'
numpy>=1.14.0,<1.17.0; python_version < '3'
pandas>=0.20.0; python_version >= '3'
pandas>=0.20.0,<0.25.0; python_version < '3'
requests>=2.4.0
pyarrow>=0.11.0
cython>=0.29
Expand Down
2 changes: 1 addition & 1 deletion requirements-wheel.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
numpy==1.14.5
pandas>=0.20.0
pandas==0.24.2
cython==0.29.3
requests>=2.4.0
pyarrow>=0.11.0
6 changes: 4 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
numpy>=1.14.0
pandas>=0.20.0
numpy>=1.14.0; python_version >= '3'
numpy>=1.14.0,<1.17.0; python_version < '3'
pandas>=0.20.0; python_version >= '3'
pandas>=0.20.0,<0.25.0; python_version < '3'
requests>=2.4.0
pyarrow>=0.11.0

0 comments on commit 6d200d0

Please sign in to comment.