1
0
Fork 0
mirror of https://github.com/deltachat/deltachat-core.git synced 2025-10-04 10:19:16 +02:00
deltachat-core/python/wheelbuilder/build-wheels.sh
Floris Bruynooghe ffc8afb055 Add scripts to build manylinux1 wheels
This allows building portable manylinux1 wheels using docker.
2018-11-25 23:21:00 +01:00

30 lines
729 B
Bash
Executable file

#!/bin/bash
set -e -x
## Build the library
meson /builddir /io
pushd /builddir
ninja
ninja install
ldconfig -v
popd
## Compile wheels
for PYBIN in /opt/python/*/bin; do
"${PYBIN}/pip" install cffi requests attrs six pytest
"${PYBIN}/pip" wheel /io/python -w wheelhouse/
done
## Bundle external shared libraries into the wheels
for whl in wheelhouse/*.whl; do
auditwheel repair "$whl" -w /io/python/wheelhouse/
done
# Clean up the cffi wheels which end up in the wheelhouse
rm -rf /io/python/wheelhouse/cffi*.whl
## Install packages (and test)
for PYBIN in /opt/python/*/bin/; do
"${PYBIN}/pip" install deltachat --no-index -f /io/python/wheelhouse
# (cd "$HOME"; "${PYBIN}/pytest" /io/python/tests)
done