Path: blob/main/buildscripts/manylinux/build_llvmlite.sh
1154 views
#!/bin/bash1set -ex23cd $(dirname $0)4source ./prepare_miniconda.sh $1567# Move to source root8cd ../..9sourceroot=$(pwd)1011# Make conda environmant for llvmdev12pyver=$213envname="llvmbase"14outputdir="/root/llvmlite/docker_output"15LLVMDEV_ARTIFACT_PATH=${3:-""}1617ls -l /opt/python/$pyver/bin1819conda create -y -n $envname20conda activate $envname21# Install llvmdev2223if [ -n "$LLVMDEV_ARTIFACT_PATH" ] && [ -d "$LLVMDEV_ARTIFACT_PATH" ]; then24conda install -y "$LLVMDEV_ARTIFACT_PATH"/llvmdev-*.conda --no-deps25else26conda install -y -c defaults numba/label/llvm20-wheel::llvmdev=20 --no-deps27fi2829# Prepend builtin Python Path30export PATH=/opt/python/$pyver/bin:$PATH3132echo "Using python: $(which python)"3334# Python 3.12+ won't have setuptools pre-installed35pip install setuptools3637# Clean up38python setup.py clean3940# Configure build via env vars41export LLVMLITE_PACKAGE_FORMAT="wheel"4243# Build wheel44distdir=$outputdir/dist_$(uname -m)_$pyver45rm -rf $distdir46python setup.py bdist_wheel -d $distdir4748# Audit wheel49cd $distdir50auditwheel --verbose repair *.whl5152cd wheelhouse53ls545556