Revert "bindings: python: fix out-of-tree build"
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 17 Apr 2023 14:34:20 +0000 (16:34 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Tue, 18 Apr 2023 12:50:33 +0000 (14:50 +0200)
commit4e75476ccb093739ce8bf52d9a8fdf9947ef1cff
tree6815162d38c510c9c69379020a7a2b7c39b59b0c
parent0494604dbe661845eae82c5e288ef39ceccc7ba7
Revert "bindings: python: fix out-of-tree build"

This reverts commit addf968c7321132a8c659e06cc06c76534ec31f5.

We're moving towards being compatible with PEP 517 for building and
currently the following error happens when running setup.py build_py:

running build_py
error: Error: setup script specifies an absolute path:

    <snip>/libgpiod/bindings/python/./gpiod/ext/chip.c

setup() arguments must *always* be /-separated paths relative to the
setup.py directory, *never* absolute paths.

As the Makefile build should only be used for development purposes, I
think we can safely drop support for out-of-tree build. Python bindings
have now been spun out into their own tarball and are available to
install from pip.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
bindings/python/Makefile.am
bindings/python/setup.py