mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
First pass for scripts to rule them all
This commit is contained in:
27
script/build_python_openzwave
Executable file
27
script/build_python_openzwave
Executable file
@@ -0,0 +1,27 @@
|
||||
# Sets up and builds python open zwave to be used with Home Assistant
|
||||
# Dependencies that need to be installed:
|
||||
# apt-get install cython3 libudev-dev python-sphinx python3-setuptools
|
||||
# pip3 install cython
|
||||
|
||||
cd "$(dirname "$0")/.."
|
||||
|
||||
if [ ! -d build ]; then
|
||||
mkdir build
|
||||
fi
|
||||
|
||||
cd build
|
||||
|
||||
if [ -d python-openzwave ]; then
|
||||
cd python-openzwave
|
||||
git pull --recurse-submodules=yes
|
||||
git submodule update --init --recursive
|
||||
else
|
||||
git clone --recursive https://github.com/balloob/python-openzwave.git
|
||||
cd python-openzwave
|
||||
fi
|
||||
|
||||
# Fix an issue with openzwave
|
||||
sed -i '253s/.*//' openzwave/cpp/src/value_classes/ValueID.h
|
||||
|
||||
./compile.sh --python3
|
||||
./install.sh --python3
|
||||
Reference in New Issue
Block a user