Skip to content

Commit

Permalink
added temp workaround for pip installation in home assistant being br…
Browse files Browse the repository at this point in the history
  • Loading branch information
handaimaoh committed Jul 9, 2022
1 parent 855a2bf commit 384b877
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .SRCINFO
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pkgbase = home-assistant-service-pip
pkgdesc = Self installing package of Home Assistant using pip
pkgver = 3
pkgrel = 2
pkgver = 4
pkgrel = 1
url = https://home-assistant.io/
install = hass.install
arch = any
Expand Down
4 changes: 2 additions & 2 deletions PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
pkgname=home-assistant-service-pip
_serviceName=hass
pkgdesc='Self installing package of Home Assistant using pip'
pkgver=3
pkgrel=3
pkgver=4
pkgrel=1
arch=('any')
url='https://home-assistant.io/'
license=(APACHE)
Expand Down
3 changes: 3 additions & 0 deletions hass-update.service
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ Type=oneshot
# upgrade home assistant and all its necessary libs
ExecStart=pip install --no-warn-script-location --user --upgrade homeassistant

# temp workaround for https://github.com/home-assistant/core/issues/74405
ExecStart = sh -c "find $(python -c 'import site; print(site.getusersitepackages())') -wholename '*/homeassistant/util/package.py' -exec sed -i '/--prefix=/d' {} \; "

# delete old python version libraries in the venv
ExecStart=sh -c '\
find \
Expand Down

0 comments on commit 384b877

Please sign in to comment.