2016-07-29 16:07:16 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e -x
|
|
|
|
|
|
|
|
# Compile wheels
|
2016-12-23 21:30:16 +00:00
|
|
|
PYTHON="/opt/python/${PYTHON_VERSION}/bin/python"
|
|
|
|
PIP="/opt/python/${PYTHON_VERSION}/bin/pip"
|
|
|
|
${PIP} install -r /io/.ci/requirements.txt
|
2018-05-30 18:35:11 +00:00
|
|
|
make -C /io/ PYTHON="${PYTHON}" ci-clean compile
|
2016-12-23 21:30:16 +00:00
|
|
|
${PIP} wheel /io/ -w /io/dist/
|
2016-07-29 16:07:16 +00:00
|
|
|
|
2016-12-23 21:30:16 +00:00
|
|
|
# Bundle external shared libraries into the wheels.
|
2016-07-29 16:07:16 +00:00
|
|
|
for whl in /io/dist/*.whl; do
|
|
|
|
auditwheel repair $whl -w /io/dist/
|
|
|
|
rm /io/dist/*-linux_*.whl
|
|
|
|
done
|
|
|
|
|
2016-12-23 21:30:16 +00:00
|
|
|
PYTHON="/opt/python/${PYTHON_VERSION}/bin/python"
|
|
|
|
PIP="/opt/python/${PYTHON_VERSION}/bin/pip"
|
|
|
|
${PIP} install ${PYMODULE} --no-index -f file:///io/dist
|
|
|
|
rm -rf /io/tests/__pycache__
|
2017-09-11 23:44:19 +00:00
|
|
|
make -C /io/ PYTHON="${PYTHON}" testinstalled
|
2016-12-23 21:30:16 +00:00
|
|
|
rm -rf /io/tests/__pycache__
|