-
Notifications
You must be signed in to change notification settings - Fork 329
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Main changes are improving error handling, documentation
- Loading branch information
Showing
7 changed files
with
43 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
#!/bin/bash | ||
# $1 is the miniconda download link | ||
if [ -z "$1" ]; then | ||
echo "Error: Miniconda download link argument is required" | ||
exit 1 | ||
fi | ||
set -xe | ||
cd $(dirname $0) | ||
source ./prepare_miniconda.sh $1 | ||
# make conda-build env t | ||
conda create -n buildenv -y conda conda-build | ||
conda activate buildenv | ||
conda list | ||
echo "BUILD_CHANNELS: $BUILD_CHANNELS" | ||
conda-build $BUILD_CHANNELS /root/llvmlite/conda-recipes/llvmdev_manylinux --output-folder=/root/llvmlite/docker_output | ||
conda-build /root/llvmlite/conda-recipes/llvmdev_manylinux --output-folder=/root/llvmlite/docker_output |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,21 @@ | ||
#!/bin/bash | ||
# $1 is the filename of the script to run inside docker. | ||
# The file must exist in buildscripts/manylinux/. | ||
# $2 is the python version name in /opt/python of the manylinux docker image. | ||
# Only used for build_llvmlite.sh. | ||
# Check if required parameters are provided | ||
if [ -z "$1" ] ; then | ||
echo "Error: Missing required parameters" | ||
echo "Usage: $0 <script-filename> [<python-version>]" | ||
exit 1 | ||
fi | ||
set -xe | ||
# Use this to make the llvmdev packages that are manylinux2010 compatible | ||
srcdir=$( cd "$(dirname $0)/../.." && pwd ) | ||
echo "srcdir=$srcdir" | ||
# Use this to make the llvmdev packages that are manylinux compatible | ||
SRCDIR=$( cd "$(dirname $0)/../.." && pwd ) | ||
echo "SRCDIR=$SRCDIR" | ||
|
||
echo "MINICONDA_FILE=$MINICONDA_FILE" | ||
# Ensure the latest docker image | ||
image="quay.io/pypa/${MANYLINUX_IMAGE}:latest" | ||
docker pull $image | ||
docker run --rm -it -v $srcdir:/root/llvmlite $image ${PRECMD} /root/llvmlite/buildscripts/manylinux/$1 ${MINICONDA_FILE} $2 | ||
IMAGE_URI="quay.io/pypa/${MANYLINUX_IMAGE}:latest" | ||
docker pull $IMAGE_URI | ||
docker run --rm -it -v $SRCDIR:/root/llvmlite $IMAGE_URI ${PRECMD} /root/llvmlite/buildscripts/manylinux/$1 ${MINICONDA_FILE} $2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters