28 lines
644 B
Bash
28 lines
644 B
Bash
|
#!/bin/bash
|
||
|
set -e -x
|
||
|
|
||
|
# Install a system package required by our library
|
||
|
#yum install -y atlas-devel
|
||
|
yum install -y cmake3
|
||
|
|
||
|
|
||
|
ALL_PYTHON=cp38-cp38
|
||
|
|
||
|
# Compile wheels
|
||
|
for pkg in $ALL_PYTHON; do
|
||
|
PYBIN=/opt/python/${pkg}/bin
|
||
|
# "${PYBIN}/pip" install -r /io/dev-requirements.txt
|
||
|
"${PYBIN}/pip" wheel -v /io/ -w wheelhouse/
|
||
|
done
|
||
|
|
||
|
# Bundle external shared libraries into the wheels
|
||
|
for whl in wheelhouse/*.whl; do
|
||
|
auditwheel repair "$whl" --plat $PLAT -w /io/wheelhouse/
|
||
|
done
|
||
|
|
||
|
# Install packages and test
|
||
|
for pkg in $ALL_PYTHON; do
|
||
|
PYBIN=/opt/python/${pkg}/bin
|
||
|
"${PYBIN}/pip" install cosmotool --no-index -f /io/wheelhouse
|
||
|
done
|