2015-02-23 01:36:28 +00:00
|
|
|
# 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:
|
2016-02-28 20:40:17 +00:00
|
|
|
# apt-get install cython3 libudev-dev python3-sphinx python3-setuptools
|
2015-02-23 01:36:28 +00:00
|
|
|
|
2015-09-17 07:35:26 +00:00
|
|
|
cd "$(dirname "$0")/.."
|
2015-02-23 01:36:28 +00:00
|
|
|
|
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-02-23 01:36:28 +00:00
|
|
|
|
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
|
2016-05-13 14:55:52 +00:00
|
|
|
git clone --recursive --depth 1 https://github.com/OpenZWave/python-openzwave.git
|
2015-03-15 07:05:18 +00:00
|
|
|
cd python-openzwave
|
|
|
|
fi
|
2015-02-23 01:36:28 +00:00
|
|
|
|
2016-02-28 20:40:17 +00:00
|
|
|
git checkout python3
|
|
|
|
PYTHON_EXEC=`which python3` make build
|
2016-02-29 04:46:16 +00:00
|
|
|
PYTHON_EXEC=`which python3` make install
|