|
#!/bin/bash |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
set -e -x |
|
echo "BUILDING ON LINUX" |
|
export BUILD_PYTHON=${BUILD_PYTHON} |
|
|
|
MANYLINUX_DIR=$(echo $(cd $(dirname ${0}); pwd)) |
|
SCRIPTS_DIR=$(dirname ${MANYLINUX_DIR}) |
|
REPO_ROOT=$(dirname ${SCRIPTS_DIR}) |
|
|
|
|
|
cd $REPO_ROOT |
|
git submodule update --init --recursive |
|
|
|
|
|
|
|
|
|
if [[ "${BUILD_PYTHON}" != "3.1"* ]]; then |
|
docker pull quay.io/pypa/manylinux1_x86_64 |
|
docker run \ |
|
--rm \ |
|
--interactive \ |
|
--volume ${REPO_ROOT}:/var/code/python-crc32c/ \ |
|
--env BUILD_PYTHON=${BUILD_PYTHON} \ |
|
quay.io/pypa/manylinux1_x86_64 \ |
|
/var/code/python-crc32c/scripts/manylinux/build_on_centos.sh |
|
fi |
|
|
|
docker pull quay.io/pypa/manylinux2010_x86_64 |
|
docker run \ |
|
--rm \ |
|
--interactive \ |
|
--volume ${REPO_ROOT}:/var/code/python-crc32c/ \ |
|
--env BUILD_PYTHON=${BUILD_PYTHON} \ |
|
quay.io/pypa/manylinux2010_x86_64 \ |
|
/var/code/python-crc32c/scripts/manylinux/build_on_centos.sh |
|
|
|
docker pull quay.io/pypa/manylinux2014_x86_64 |
|
docker run \ |
|
--rm \ |
|
--interactive \ |
|
--volume ${REPO_ROOT}:/var/code/python-crc32c/ \ |
|
--env BUILD_PYTHON=${BUILD_PYTHON} \ |
|
quay.io/pypa/manylinux2014_x86_64 \ |
|
/var/code/python-crc32c/scripts/manylinux/build_on_centos.sh |
|
|
|
docker run --rm --privileged hypriot/qemu-register |
|
docker pull quay.io/pypa/manylinux2014_aarch64 |
|
docker run \ |
|
--rm \ |
|
--interactive \ |
|
--volume ${REPO_ROOT}:/var/code/python-crc32c/ \ |
|
--env BUILD_PYTHON=${BUILD_PYTHON} \ |
|
quay.io/pypa/manylinux2014_aarch64 \ |
|
/var/code/python-crc32c/scripts/manylinux/build_on_centos.sh |
|
|