1
0
mirror of https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git synced 2026-10-25 12:39:18 +03:00
Files
libgpiod/bindings/python/Makefile.am
Bartosz Golaszewski 3fce3c0624 bindings: python: add misc build files to EXTRA_DIST
Several files are not being included in distro tarballs so the
functionality of the python build is limited compared to the repo. Add
them to EXTRA_DIST.

Fixes: d588a6a592 ("bindings: python: standalone build tooling for tests")
Fixes: 72d2fa01a2 ("bindings: python: add script to generate sdist and wheels")
Fixes: 85089d0e40 ("bindings: python: add pyproject.toml, pep 518")
Fixes: 389a966d4e ("bindings: python: move long_description into README.md")
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
2024-10-02 16:58:28 +02:00

58 lines
1.1 KiB
Makefile

# SPDX-License-Identifier: GPL-2.0-or-later
# SPDX-FileCopyrightText: 2022 Bartosz Golaszewski <brgl@bgdev.pl>
EXTRA_DIST = \
MANIFEST.in \
README.md \
build_tests.py \
generate_pypi_artifacts.sh \
pyproject.toml \
setup.py
if WITH_TESTS
python-tests:
TOP_SRCDIR=$(abs_top_builddir) \
TOP_BUILDDIR=$(abs_top_builddir) \
$(PYTHON) build_tests.py
python-tests-run:
PYTHONPATH=$(abs_top_srcdir)/bindings/python \
LD_LIBRARY_PATH=$(abs_top_builddir)/lib/.libs/:\
$(abs_top_builddir)/tests/gpiosim/.libs/ \
$(PYTHON) -B -m tests
else
python-tests:
endif
clean-local:
rm -rf dist
rm -f gpiod/_ext.*.so
rm -f tests/*/_ext.*.so
all-local: python-tests
CFLAGS="-I$(abs_top_srcdir)/include/ -I$(abs_top_srcdir)/tests/gpiosim \
-L$(abs_top_builddir)/lib/.libs/ -L$(abs_top_builddir)/tests/gpiosim/.libs/" \
$(PYTHON) -m build
install-exec-local:
$(PYTHON) -m pip install dist/*.whl \
--ignore-installed --prefix=$(prefix) --root=$(if $(DESTDIR),$(DESTDIR),/)
SUBDIRS = gpiod
if WITH_TESTS
SUBDIRS += tests
endif
if WITH_EXAMPLES
SUBDIRS += examples
endif