1
mirror of https://github.com/home-assistant/core synced 2024-10-01 05:30:36 +02:00
ha-core/script/build_python_openzwave

25 lines
611 B
Plaintext
Executable File

# 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 python3-sphinx python3-setuptools
cd "$(dirname "$0")/.."
if [ ! -d build ]; then
mkdir build
fi
cd build
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
cd python-openzwave
fi
git checkout python3
PYTHON_EXEC=`which python3` make build
PYTHON_EXEC=`which python3` make install