core/script/build_python_openzwave

28 lines
664 B
Plaintext
Raw Normal View History

# Sets up and builds python open zwave to be used with Home Assistant
2015-10-24 18:27:47 +00:00
# Dependencies that need to be installed:
2015-03-15 07:05:18 +00:00
# apt-get install cython3 libudev-dev python-sphinx python3-setuptools
2015-10-24 18:27:47 +00:00
# pip3 install "cython<0.23"
cd "$(dirname "$0")/.."
2015-03-15 07:05:18 +00:00
if [ ! -d build ]; then
mkdir build
fi
2015-02-28 17:09:32 +00:00
cd build
2015-03-15 07:05:18 +00:00
if [ -d python-openzwave ]; then
cd python-openzwave
git pull --recurse-submodules=yes
git submodule update --init --recursive
else
2015-03-19 02:15:48 +00:00
git clone --recursive https://github.com/balloob/python-openzwave.git
2015-03-15 07:05:18 +00:00
cd python-openzwave
fi
# Fix an issue with openzwave
sed -i '253s/.*//' openzwave/cpp/src/value_classes/ValueID.h
2015-03-15 07:05:18 +00:00
./compile.sh --python3
./install.sh --python3