Files
bullet3/wheel.sh
2025-01-29 15:09:22 -08:00

25 lines
639 B
Bash
Executable File

#!/bin/bash
set -e -x
# use this docker command
# sudo docker run -it -v $(pwd):/io quay.io/pypa/manylinux2014_x86_64
# Compile wheels
for PYBIN in /opt/python/*/bin; do
"${PYBIN}/pip" install -r /io/dev/bullet3/requirements.txt
"${PYBIN}/pip" wheel /io/dev/bullet3 -w wheelhouse/
done
# Bundle external shared libraries into the wheels
for whl in wheelhouse/*.whl; do
auditwheel repair "$whl" -w /io/wheelhouse/
done
# Install packages and test
for PYBIN in /opt/python/*/bin/; do
"${PYBIN}/pip" install python-manylinux-demo --no-index -f /io/wheelhouse
(cd "$HOME"; "${PYBIN}/nosetests" pymanylinuxdemo)
done