mirror of
https://gitlab.com/libvirt/libvirt-python.git
synced 2024-10-26 07:55:06 +03:00
07fda40545
* 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>
23 lines
429 B
Makefile
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
|