From a07e671a7748fecf6eee8ad0df27c6d30eaed062 Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Tue, 27 Mar 2018 22:51:19 +0200 Subject: [PATCH] Bugfix custom deps prefix (#274) * Update run.sh * Update config.json * Update CHANGELOG.md --- custom_deps/CHANGELOG.md | 3 +++ custom_deps/config.json | 2 +- custom_deps/run.sh | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/custom_deps/CHANGELOG.md b/custom_deps/CHANGELOG.md index f2e6384..e06983b 100644 --- a/custom_deps/CHANGELOG.md +++ b/custom_deps/CHANGELOG.md @@ -1,4 +1,7 @@ # Changelog +## 0.2 +- Bugfix pip prefix settings + ## 0.1 - Initial release diff --git a/custom_deps/config.json b/custom_deps/config.json index 9dce539..545a12d 100644 --- a/custom_deps/config.json +++ b/custom_deps/config.json @@ -1,6 +1,6 @@ { "name": "Custom deps deployment", - "version": "0.1", + "version": "0.2", "slug": "custom_deps", "description": "Manage custom python modules in Home Assistant deps", "url": "https://home-assistant.io/addons/custom_deps/", diff --git a/custom_deps/run.sh b/custom_deps/run.sh index 1feff71..a5447db 100644 --- a/custom_deps/run.sh +++ b/custom_deps/run.sh @@ -22,7 +22,7 @@ fi # Install pypi modules echo "[Info] Install pypi modules into deps" export PYTHONUSERBASE=/config/deps -if ! ERROR="$(pip3 install --user --no-cache-dir --no-dependencies "${PYPI[@]}")"; then +if ! ERROR="$(pip3 install --user --no-cache-dir --prefix= --no-dependencies "${PYPI[@]}")"; then echo "[Error] Can't install pypi packages!" echo "$ERROR" && exit 1 fi