#!/bin/bash # Depends on: # REPO_DIR # PYTHON_VERSION # BUILD_COMMIT # UNICODE_WIDTH (can be empty) # BUILD_DEPENDS (can be empty) set -e # Unicode width, default 32 UNICODE_WIDTH=${UNICODE_WIDTH:-32} # Location of wheels, default "wheelhouse" WHEEL_SDIR=${WHEEL_SDIR:-wheelhouse} # Manylinux, openblas version, lex_ver, Python versions MULTIBUILD_DIR=$(dirname "${BASH_SOURCE[0]}") # This next also sources common utils. source $MULTIBUILD_DIR/manylinux_utils.sh source $MULTIBUILD_DIR/docker_lib_builders.sh # Set PATH for chosen Python, Unicode width export PATH="$(cpython_path $PYTHON_VERSION $UNICODE_WIDTH)/bin:$PATH" # Change into root directory of repo cd /io # Configuration for this package, possibly overriding `build_wheel` defined in # `common_utils.sh` via `manylinux_utils.sh`. source config.sh build_wheel $REPO_DIR