Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
numba
GitHub Repository: numba/llvmlite
Path: blob/main/buildscripts/manylinux/docker_run.sh
1154 views
1
#!/bin/bash
2
# $1 is the filename of the script to run inside docker.
3
# The file must exist in buildscripts/manylinux/.
4
# $2 is the python version name in /opt/python of the manylinux docker image.
5
# Only used for build_llvmlite.sh.
6
# Check if required parameters are provided
7
if [ -z "$1" ] ; then
8
echo "Error: Missing required parameters"
9
echo "Usage: $0 <script-filename> [<python-version>]"
10
exit 1
11
fi
12
set -xe
13
# Use this to make the llvmdev packages that are manylinux compatible
14
SRCDIR=$( cd "$(dirname $0)/../.." && pwd )
15
echo "SRCDIR=$SRCDIR"
16
17
echo "MINICONDA_FILE=$MINICONDA_FILE"
18
# Ensure the latest docker image
19
IMAGE_URI="quay.io/pypa/${MANYLINUX_IMAGE}:latest"
20
docker pull $IMAGE_URI
21
docker run --rm -it -v $SRCDIR:/root/llvmlite $IMAGE_URI ${PRECMD} /root/llvmlite/buildscripts/manylinux/$1 ${MINICONDA_FILE} $2
22
23