Merge pull request #1436 from partofthething/zwave-unfork

updated build script for unforking of python-openzwave
pull/1437/head
Paulus Schoutsen 2016-02-28 20:24:56 -08:00
commit 28d80e6e2d
1 changed files with 5 additions and 8 deletions

View File

@ -1,7 +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
# pip3 install "cython<0.23"
# apt-get install cython3 libudev-dev python3-sphinx python3-setuptools
cd "$(dirname "$0")/.."
@ -16,12 +15,10 @@ if [ -d python-openzwave ]; then
git pull --recurse-submodules=yes
git submodule update --init --recursive
else
git clone --recursive https://github.com/balloob/python-openzwave.git
git clone --recursive https://github.com/OpenZWave/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
git checkout python3
PYTHON_EXEC=`which python3` make build
sudo PYTHON_EXEC=`which python3` make install