#!/bin/bash1# $1 is the filename of the script to run inside docker.2# The file must exist in buildscripts/manylinux/.3# $2 is the python version name in /opt/python of the manylinux docker image.4# Only used for build_llvmlite.sh.5# Check if required parameters are provided6if [ -z "$1" ] ; then7echo "Error: Missing required parameters"8echo "Usage: $0 <script-filename> [<python-version>]"9exit 110fi11set -xe12# Use this to make the llvmdev packages that are manylinux compatible13SRCDIR=$( cd "$(dirname $0)/../.." && pwd )14echo "SRCDIR=$SRCDIR"1516echo "MINICONDA_FILE=$MINICONDA_FILE"17# Ensure the latest docker image18IMAGE_URI="quay.io/pypa/${MANYLINUX_IMAGE}:latest"19docker pull $IMAGE_URI20docker run --rm -it -v $SRCDIR:/root/llvmlite $IMAGE_URI ${PRECMD} /root/llvmlite/buildscripts/manylinux/$1 ${MINICONDA_FILE} $2212223