Skip to content

Commit

Permalink
Use python version for wheels builder (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
pvizeli authored Apr 30, 2019
1 parent e4a51b3 commit 1f59dc2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions builder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ Options:
Default on. Run all things for an addon build.
--builder <VERSION>
Build a it self.
--builder-wheels <VERSION>
--builder-wheels
Build the wheels builder for Home Assistant.
--base <VERSION>
Build our base images.
Expand Down Expand Up @@ -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[@]
}

Expand Down Expand Up @@ -802,8 +804,6 @@ while [[ $# -gt 0 ]]; do
;;
--builder-wheels)
BUILD_TYPE="builder-wheels"
VERSION=$2
shift
;;

*)
Expand Down

0 comments on commit 1f59dc2

Please sign in to comment.