Commit 9fea74be authored by Matthew Brett's avatar Matthew Brett
Browse files

Add BUILD_COMMIT to docker environment

BUILD_COMMIT not available directly from the repository, and may be useful for
later build steps.
parent cc70321d
......@@ -2,9 +2,9 @@
# Depends on:
# REPO_DIR
# PYTHON_VERSION
# BUILD_COMMIT
# BUILD_COMMIT (may be used by config.sh)
# UNICODE_WIDTH (can be empty)
# BUILD_DEPENDS (can be empty)
# BUILD_DEPENDS (may be used by config.sh, can be empty)
set -e
# Unicode width, default 32
......@@ -13,7 +13,7 @@ UNICODE_WIDTH=${UNICODE_WIDTH:-32}
# Location of wheels, default "wheelhouse"
WHEEL_SDIR=${WHEEL_SDIR:-wheelhouse}
# Manylinux, openblas version, lex_ver, Python versions
# Always pull in common and library builder utils
MULTIBUILD_DIR=$(dirname "${BASH_SOURCE[0]}")
# This next also sources common utils.
source $MULTIBUILD_DIR/manylinux_utils.sh
......
......@@ -36,6 +36,7 @@ function build_wheel {
# REPO_DIR (or via input argument)
# PLAT (can be passed in as argument)
# MB_PYTHON_VERSION
# BUILD_COMMIT
# UNICODE_WIDTH (optional)
# BUILD_DEPENDS (optional)
# MANYLINUX_URL (optional)
......@@ -48,6 +49,7 @@ function build_wheel {
docker run --rm \
-e PYTHON_VERSION="$MB_PYTHON_VERSION" \
-e UNICODE_WIDTH="$UNICODE_WIDTH" \
-e BUILD_COMMIT="$BUILD_COMMIT" \
-e WHEEL_SDIR="$WHEEL_SDIR" \
-e MANYLINUX_URL="$MANYLINUX_URL" \
-e BUILD_DEPENDS="$BUILD_DEPENDS" \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment