|
2 | 2 |
|
3 | 3 | set -e -x
|
4 | 4 |
|
5 |
| -yum update -y |
6 |
| -yum install -y libtool autoconf automake |
7 |
| - |
8 |
| -PYTHON_VERSIONS="cp35-cp35m" |
9 |
| - |
10 | 5 | # Compile wheels
|
11 |
| -for PYTHON_VERSION in ${PYTHON_VERSIONS}; do |
12 |
| - PYTHON="/opt/python/${PYTHON_VERSION}/bin/python" |
13 |
| - PIP="/opt/python/${PYTHON_VERSION}/bin/pip" |
14 |
| - ${PIP} install --upgrade pip wheel |
15 |
| - ${PIP} install --upgrade setuptools |
16 |
| - ${PIP} install -r /io/.ci/requirements.txt |
17 |
| - make -C /io/ PYTHON="${PYTHON}" distclean |
18 |
| - make -C /io/ PYTHON="${PYTHON}" |
19 |
| - ${PIP} wheel /io/ -w /io/dist/ |
20 |
| -done |
| 6 | +PYTHON="/opt/python/${PYTHON_VERSION}/bin/python" |
| 7 | +PIP="/opt/python/${PYTHON_VERSION}/bin/pip" |
| 8 | +${PIP} install --upgrade pip wheel |
| 9 | +${PIP} install --upgrade setuptools |
| 10 | +${PIP} install -r /io/.ci/requirements.txt |
| 11 | +make -C /io/ PYTHON="${PYTHON}" |
| 12 | +${PIP} wheel /io/ -w /io/dist/ |
21 | 13 |
|
22 |
| -#Bundle external shared libraries into the wheels. |
| 14 | +# Bundle external shared libraries into the wheels. |
23 | 15 | for whl in /io/dist/*.whl; do
|
24 | 16 | auditwheel repair $whl -w /io/dist/
|
25 | 17 | rm /io/dist/*-linux_*.whl
|
26 | 18 | done
|
27 | 19 |
|
28 |
| -for PYTHON_VERSION in ${PYTHON_VERSIONS}; do |
29 |
| - PYTHON="/opt/python/${PYTHON_VERSION}/bin/python" |
30 |
| - PIP="/opt/python/${PYTHON_VERSION}/bin/pip" |
31 |
| - ${PIP} install ${PYMODULE} --no-index -f file:///io/dist |
32 |
| - rm -rf /io/tests/__pycache__ |
33 |
| - make -C /io/ PYTHON="${PYTHON}" test |
34 |
| - rm -rf /io/tests/__pycache__ |
35 |
| -done |
| 20 | +PYTHON="/opt/python/${PYTHON_VERSION}/bin/python" |
| 21 | +PIP="/opt/python/${PYTHON_VERSION}/bin/pip" |
| 22 | +${PIP} install ${PYMODULE} --no-index -f file:///io/dist |
| 23 | +rm -rf /io/tests/__pycache__ |
| 24 | +make -C /io/ PYTHON="${PYTHON}" test |
| 25 | +rm -rf /io/tests/__pycache__ |
0 commit comments