2018-08-22 16:37:35 -04:00
|
|
|
#!/bin/bash
|
|
|
|
set -e -x
|
|
|
|
|
|
|
|
# Install a system package required by our library
|
2018-08-22 16:53:30 -04:00
|
|
|
yum install -y atlas-devel mesa-libGL-devel mesa-libGLU-devel
|
2018-08-22 16:37:35 -04:00
|
|
|
|
|
|
|
# Compile wheels
|
|
|
|
for PYBIN in /opt/python/*/bin; do
|
2018-08-22 16:48:48 -04:00
|
|
|
"${PYBIN}/pip" install -r /io/dev-requirements.txt
|
2018-08-22 16:37:35 -04:00
|
|
|
"${PYBIN}/pip" wheel /io/ -w wheelhouse/
|
|
|
|
done
|
|
|
|
|
|
|
|
# Bundle external shared libraries into the wheels
|
2018-08-22 17:00:41 -04:00
|
|
|
for whl in wheelhouse/punyverse*.whl; do
|
2018-08-22 16:37:35 -04:00
|
|
|
auditwheel repair "$whl" -w /io/wheelhouse/
|
|
|
|
done
|
2018-08-22 16:48:48 -04:00
|
|
|
|