hass-core/virtualization/Docker/scripts/python_openzwave
2017-04-27 09:28:40 -07:00

30 lines
No EOL
688 B
Bash
Executable file

#!/bin/sh
# Sets up python-openzwave.
# Dependencies that need to be installed:
# apt-get install cython3 libudev-dev python3-sphinx python3-setuptools
# Stop on errors
set -e
cd "$(dirname "$0")/.."
if [ ! -d build ]; then
mkdir build
fi
cd build
if [ -d python-openzwave ]; then
cd python-openzwave
git checkout v0.3.3
else
git clone --branch v0.3.3 --recursive --depth 1 https://github.com/OpenZWave/python-openzwave.git
cd python-openzwave
fi
pip3 install --upgrade cython==0.24.1
PYTHON_EXEC=`which python3` make build
PYTHON_EXEC=`which python3` make install
mkdir -p /usr/local/share/python-openzwave
cp -R openzwave/config /usr/local/share/python-openzwave/config