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
Vincent Fazio c921c813db bindings: python: remove egg-info during clean
The egg-info directory gets generated when a distribution is built so
should be removed when `make clean` is run.

Signed-off-by: Vincent Fazio <vfazio@gmail.com>
Link: https://patch.msgid.link/20260228185213.31442-1-vfazio@gmail.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
2026-03-02 12:19:53 +01:00

59 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 -rf gpiod.egg-info
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