core/script/build_python_openzwave

25 lines
611 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:
# apt-get install cython3 libudev-dev python3-sphinx python3-setuptools
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
git clone --recursive --depth 1 https://github.com/OpenZWave/python-openzwave.git
2015-03-15 07:05:18 +00:00
cd python-openzwave
fi
git checkout python3
PYTHON_EXEC=`which python3` make build
2016-02-29 04:46:16 +00:00
PYTHON_EXEC=`which python3` make install