Bugfix custom deps prefix (#274)

* Update run.sh

* Update config.json

* Update CHANGELOG.md
This commit is contained in:
Pascal Vizeli
2018-03-27 22:51:19 +02:00
committed by GitHub
parent 89928fd29c
commit a07e671a77
3 changed files with 5 additions and 2 deletions

View File

@@ -1,4 +1,7 @@
# Changelog
## 0.2
- Bugfix pip prefix settings
## 0.1
- Initial release

View File

@@ -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/",

View File

@@ -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