Compile OZW from git branch in pyOZW

Hi,

Anyone know how to compile pyOZW with a git customized OZW?

Tried checking the pyOZW docs, but didnt get it at all.

        embed : the default one. Download sources from https://github.com/OpenZWave/python-openzwave/tree/master/archives and build them. Python_openzwave is statically build using a cythonized version of libopenzwave. No need to install cython.
        shared : if you have install openzwave as module manually, you can link python_openzwave to it.
        git : download sources from openzwave github and link statically to it.
        embed_shared (experimental) : download sources from https://github.com/OpenZWave/python-openzwave/tree/master/archives, build and install as module on the system. Python_openzwave use it. Need root access to install openzwave libs.
        git_shared (experimental) : download sources from openzwave github, build and install them as module on the system. Python_openzwave use it. Need root access to install openzwave libs.
        ozwdev and ozwdev_shared : use the dev branch of openzwave on github.
        dev : for python_openzwave developers. Look for openzwave sources in a local folder specified by the LOCAL_OPENZWAVE environment variable (defaults to 'openzwave').

How can i specify a .git?

git checkout “branch”

like: git chekout master
git checkout dev

etc…

I use the following in my Home Assistant Dockerfile to build PyOZW with a custom OZW branch.

# BEGIN patches
RUN cd /tmp && curl https://codeload.github.com/jvolkman/open-zwave/tar.gz/checkfix | tar zxv && mv /tmp/open-zwave-checkfix /tmp/openzwave
RUN mkdir -p /tmp/pyozwbuild/python-openzwave && mv /tmp/openzwave /tmp/pyozwbuild/python-openzwave/
RUN pip3 install --no-cache-dir python_openzwave==0.4.0.35 --upgrade --no-deps --force-reinstall --install-option="--flavor=dev" -b /tmp/pyozwbuild
# END patches