1
0
mirror of https://gitlab.com/libvirt/libvirt-python.git synced 2024-10-26 07:55:06 +03:00
libvirt-python/Makefile
Ariel Otilibili 07fda40545 Makefile: make check now computes env variable on the fly
* env variable used to be Python3.6
* Python3.6 is end of life since December 2021 [1].

[1] https://devguide.python.org/versions/

Signed-off-by: Ariel Otilibili <otilibil@eurecom.fr>
2024-08-08 17:45:01 +02:00

23 lines
429 B
Makefile

# Shim wrapper around setup.py to allow for familiar build targets
PYTHON ?= python
VERSION := $(shell $(PYTHON) -c 'import sys; print("{}{}".format(sys.version_info.major, sys.version_info.minor))')
all:
$(PYTHON) -m build
install: all
$(PYTHON) -m pip install .
clean:
rm -rf build/ dist/
check: all
tox -e py$(VERSION)
test: all
tox
rpm: all
rpmbuild -ta dist/libvirt-python-$(shell tr -d '\n' < VERSION).tar.gz