Move docker installation scripts to virtualization/Docker path. Splits out openalpr to seperate script. (#5676)
This commit is contained in:
parent
89ec752064
commit
8247acb7b9
10 changed files with 155 additions and 132 deletions
32
virtualization/Docker/scripts/python_openzwave
Executable file
32
virtualization/Docker/scripts/python_openzwave
Executable file
|
@ -0,0 +1,32 @@
|
|||
#!/bin/sh
|
||||
# Sets up python-openzwave.
|
||||
# Dependencies that need to be installed:
|
||||
# apt-get install cython3 libudev-dev python3-sphinx python3-setuptools
|
||||
|
||||
# Stop on errors
|
||||
set -e
|
||||
|
||||
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 --branch python3 --recursive --depth 1 https://github.com/OpenZWave/python-openzwave.git
|
||||
cd python-openzwave
|
||||
fi
|
||||
|
||||
git checkout python3
|
||||
pip3 install --upgrade cython==0.24.1
|
||||
PYTHON_EXEC=`which python3` make build
|
||||
PYTHON_EXEC=`which python3` make install
|
||||
|
||||
mkdir -p /usr/local/share/python-openzwave
|
||||
cp -R openzwave/config /usr/local/share/python-openzwave/config
|
Loading…
Add table
Add a link
Reference in a new issue