mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Update build python openzwave
This commit is contained in:
parent
ef5deac3e1
commit
0b8fea923a
@ -1,6 +1,6 @@
|
||||
# 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 mercurial
|
||||
# apt-get install cython3 libudev-dev python-sphinx python3-setuptools
|
||||
# pip3 install cython
|
||||
|
||||
# If current pwd is scripts, go 1 up.
|
||||
@ -8,15 +8,23 @@ if [ ${PWD##*/} == "scripts" ]; then
|
||||
cd ..
|
||||
fi
|
||||
|
||||
mkdir build
|
||||
if [ ! -d build ]; then
|
||||
mkdir build
|
||||
fi
|
||||
|
||||
cd build
|
||||
|
||||
hg clone https://code.google.com/r/balloob-python-openzwave/
|
||||
cd balloob-python-openzwave
|
||||
./update.sh
|
||||
if [ -d python-openzwave ]; then
|
||||
cd python-openzwave
|
||||
git pull --recurse-submodules=yes
|
||||
git submodule update --init --recursive
|
||||
else
|
||||
git clone -b python-3-support --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
|
||||
./install.sh
|
||||
./compile.sh --python3
|
||||
./install.sh --python3
|
||||
|
Loading…
x
Reference in New Issue
Block a user