markqvist___LXST/build_wheels.sh
2025-11-24 15:28:32 +01:00

26 lines
No EOL
583 B
Bash
Executable file

#!/bin/bash
# This script is used to run the binary wheel builds
# inside docker containers for multi-arch compilation
set -e -x
yum install -y gcc gcc-c++ make codec2-devel codec2
PYTHON_VERSIONS=(
"cp311-cp311"
"cp312-cp312"
"cp313-cp313"
"cp314-cp314"
)
for PY_TAG in "${PYTHON_VERSIONS[@]}"; do
PYBIN="/opt/python/${PY_TAG}/bin"
if [ ! -d "$PYBIN" ]; then
echo "Python version not found: $PYBIN"
continue
fi
echo "Building with: $PYBIN"
"${PYBIN}/pip" install cffi
"${PYBIN}/pip" wheel /io/ -w wheelhouse/
done