1
0
mirror of https://gitlab.com/libvirt/libvirt-python.git synced 2024-10-26 07:55:06 +03:00

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>
This commit is contained in:
Ariel Otilibili 2024-08-05 19:32:42 +02:00
parent 4701d0abba
commit 07fda40545

View File

@ -1,6 +1,7 @@
# Shim wrapper around setup.py to allow for familiar build targets
PYTHON ?= python
PYTHON ?= python
VERSION := $(shell $(PYTHON) -c 'import sys; print("{}{}".format(sys.version_info.major, sys.version_info.minor))')
all:
$(PYTHON) -m build
@ -12,7 +13,7 @@ clean:
rm -rf build/ dist/
check: all
tox -e py36
tox -e py$(VERSION)
test: all
tox