cosmotool/builder/build-wheels.sh

37 lines
899 B
Bash
Raw Normal View History

#!/bin/bash
set -e -x
2020-10-04 09:46:38 +02:00
CC=cc
CXX=c++
export CC CXX
# Install a system package required by our library
#yum install -y atlas-devel
2021-01-25 09:50:48 +01:00
yum install -y cmake3 gsl-devel zlib-devel fftw3-devel
2020-04-28 22:34:49 +02:00
ln -fs /usr/bin/cmake3 /usr/bin/cmake
2020-04-28 22:34:49 +02:00
2020-10-26 13:58:07 +01:00
ALL_PYTHON="cp36-cp36m cp37-cp37m cp38-cp38 cp39-cp39"
# Compile wheels
for pkg in $ALL_PYTHON; do
PYBIN=/opt/python/${pkg}/bin
# "${PYBIN}/pip" install -r /io/dev-requirements.txt
2021-01-25 09:50:48 +01:00
"${PYBIN}/pip" install setuptools wheel Cython
2020-04-28 22:34:49 +02:00
"${PYBIN}/pip" install -r /io/requirements.txt
"${PYBIN}/pip" wheel -vvv /io/ -w wheelhouse/
done
# Bundle external shared libraries into the wheels
2021-01-25 09:50:48 +01:00
for whl in wheelhouse/cosmotool*.whl; do
auditwheel repair "$whl" --plat $PLAT -w /io/wheelhouse/
done
# Install packages and test
2021-01-25 09:50:48 +01:00
#for pkg in $ALL_PYTHON; do
# PYBIN=/opt/python/${pkg}/bin
# "${PYBIN}/pip" install cosmotool --no-index -f /io/wheelhouse
#done