From 1f59dc2f60d133016b45f2bbef4af0dcc447843b Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Tue, 30 Apr 2019 17:35:16 +0200 Subject: [PATCH] Use python version for wheels builder (#9) --- builder.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/builder.sh b/builder.sh index bd4d2e2..8203229 100755 --- a/builder.sh +++ b/builder.sh @@ -110,7 +110,7 @@ Options: Default on. Run all things for an addon build. --builder Build a it self. - --builder-wheels + --builder-wheels Build the wheels builder for Home Assistant. --base Build our base images. @@ -591,12 +591,14 @@ function build_wheels() { local image="{arch}-wheels" local build_from="homeassistant/${build_arch}-base-python:3.7" local docker_cli=() + local version="" # Metadata + version="$(python3 "$TARGET/setup.py" -V)" docker_cli+=("--label" "io.hass.type=wheels") # Start build - run_build "$TARGET" "$DOCKER_HUB" "$image" "" \ + run_build "$TARGET" "$DOCKER_HUB" "$image" "$version" \ "$build_from" "$build_arch" docker_cli[@] } @@ -802,8 +804,6 @@ while [[ $# -gt 0 ]]; do ;; --builder-wheels) BUILD_TYPE="builder-wheels" - VERSION=$2 - shift ;; *)