Skip to content

Commit

Permalink
Use legacy pip resolver in machine builds (home-assistant#66094)
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck authored Feb 8, 2022
1 parent a7fd477 commit 1bc82e2
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 6 deletions.
3 changes: 2 additions & 1 deletion machine/raspberrypi
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ RUN apk --no-cache add \
usbutils \
&& sed -i "s|# RPi.GPIO|RPi.GPIO|g" /usr/src/homeassistant/requirements_all.txt \
&& pip3 install --no-cache-dir --no-index --only-binary=:all: --find-links "${WHEELS_LINKS}" \
RPi.GPIO -c /usr/src/homeassistant/requirements_all.txt
RPi.GPIO -c /usr/src/homeassistant/requirements_all.txt \
--use-deprecated=legacy-resolver

##
# Set symlinks for raspberry pi camera binaries.
Expand Down
3 changes: 2 additions & 1 deletion machine/raspberrypi2
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ RUN apk --no-cache add \
usbutils \
&& sed -i "s|# RPi.GPIO|RPi.GPIO|g" /usr/src/homeassistant/requirements_all.txt \
&& pip3 install --no-cache-dir --no-index --only-binary=:all: --find-links "${WHEELS_LINKS}" \
RPi.GPIO -c /usr/src/homeassistant/requirements_all.txt
RPi.GPIO -c /usr/src/homeassistant/requirements_all.txt \
--use-deprecated=legacy-resolver

##
# Set symlinks for raspberry pi binaries.
Expand Down
3 changes: 2 additions & 1 deletion machine/raspberrypi3
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ RUN apk --no-cache add \
usbutils \
&& sed -i "s|# RPi.GPIO|RPi.GPIO|g" /usr/src/homeassistant/requirements_all.txt \
&& pip3 install --no-cache-dir --no-index --only-binary=:all: --find-links "${WHEELS_LINKS}" \
RPi.GPIO bluepy pybluez -c /usr/src/homeassistant/requirements_all.txt
RPi.GPIO bluepy pybluez -c /usr/src/homeassistant/requirements_all.txt \
--use-deprecated=legacy-resolver

##
# Set symlinks for raspberry pi binaries.
Expand Down
3 changes: 2 additions & 1 deletion machine/raspberrypi3-64
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ RUN apk --no-cache add \
usbutils \
&& sed -i "s|# RPi.GPIO|RPi.GPIO|g" /usr/src/homeassistant/requirements_all.txt \
&& pip3 install --no-cache-dir --no-index --only-binary=:all: --find-links "${WHEELS_LINKS}" \
RPi.GPIO bluepy pybluez -c /usr/src/homeassistant/requirements_all.txt
RPi.GPIO bluepy pybluez -c /usr/src/homeassistant/requirements_all.txt \
--use-deprecated=legacy-resolver

##
# Set symlinks for raspberry pi binaries.
Expand Down
3 changes: 2 additions & 1 deletion machine/raspberrypi4
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ RUN apk --no-cache add \
usbutils \
&& sed -i "s|# RPi.GPIO|RPi.GPIO|g" /usr/src/homeassistant/requirements_all.txt \
&& pip3 install --no-cache-dir --no-index --only-binary=:all: --find-links "${WHEELS_LINKS}" \
RPi.GPIO bluepy pybluez -c /usr/src/homeassistant/requirements_all.txt
RPi.GPIO bluepy pybluez -c /usr/src/homeassistant/requirements_all.txt \
--use-deprecated=legacy-resolver

##
# Set symlinks for raspberry pi binaries.
Expand Down
3 changes: 2 additions & 1 deletion machine/raspberrypi4-64
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ RUN apk --no-cache add \
usbutils \
&& sed -i "s|# RPi.GPIO|RPi.GPIO|g" /usr/src/homeassistant/requirements_all.txt \
&& pip3 install --no-cache-dir --no-index --only-binary=:all: --find-links "${WHEELS_LINKS}" \
RPi.GPIO bluepy pybluez -c /usr/src/homeassistant/requirements_all.txt
RPi.GPIO bluepy pybluez -c /usr/src/homeassistant/requirements_all.txt \
--use-deprecated=legacy-resolver

##
# Set symlinks for raspberry pi binaries.
Expand Down
1 change: 1 addition & 0 deletions machine/tinker
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ FROM homeassistant/armv7-homeassistant:$BUILD_VERSION
RUN apk --no-cache add usbutils \
&& pip3 install --no-cache-dir --no-index --only-binary=:all: --find-links "${WHEELS_LINKS}" \
-c /usr/src/homeassistant/homeassistant/package_constraints.txt \
--use-deprecated=legacy-resolver \
bluepy \
pybluez \
pygatt[GATTTOOL]

0 comments on commit 1bc82e2

Please sign in to comment.