diff options
author | Elvis Pranskevichus <elvis@magic.io> | 2018-03-30 19:47:52 -0400 |
---|---|---|
committer | Elvis Pranskevichus <elvis@magic.io> | 2018-03-30 20:50:17 -0400 |
commit | a1b19e1d10896f3ac2ce0b97c2bf24e0c1c4520f (patch) | |
tree | 283ca8f24adc74d1092cf24b7bd66174a0014b51 /.ci/build-manylinux-wheels.sh | |
parent | 0e715340a78863d973302981ab98b232d6f51735 (diff) | |
download | immutables-a1b19e1d10896f3ac2ce0b97c2bf24e0c1c4520f.tar.gz immutables-a1b19e1d10896f3ac2ce0b97c2bf24e0c1c4520f.zip |
CI integration
Diffstat (limited to '.ci/build-manylinux-wheels.sh')
-rwxr-xr-x | .ci/build-manylinux-wheels.sh | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/.ci/build-manylinux-wheels.sh b/.ci/build-manylinux-wheels.sh new file mode 100755 index 0000000..6d78104 --- /dev/null +++ b/.ci/build-manylinux-wheels.sh @@ -0,0 +1,29 @@ +#!/bin/bash + +set -e -x + +# Compile wheels +PYTHON="/opt/python/${PYTHON_VERSION}/bin/python" +PIP="/opt/python/${PYTHON_VERSION}/bin/pip" +${PIP} install --upgrade pip wheel +${PIP} install --upgrade setuptools +${PIP} install -r /io/.ci/requirements.txt +make -C /io/ PYTHON="${PYTHON}" +${PIP} wheel /io/ -w /io/dist/ + +# Bundle external shared libraries into the wheels. +for whl in /io/dist/*.whl; do + auditwheel repair $whl -w /io/dist/ + rm /io/dist/*-linux_*.whl +done + +# Grab docker host, where Postgres should be running. +export PGHOST=$(ip route | awk '/default/ { print $3 }' | uniq) +export PGUSER="postgres" + +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__ +make -C /io/ PYTHON="${PYTHON}" testinstalled +rm -rf /io/tests/__pycache__ |