block py2 building for hub/web/util

This commit is contained in:
Tomas Kopecek 2022-11-28 10:44:13 +01:00
parent f7324fafa8
commit df70ecfbba
3 changed files with 10 additions and 4 deletions

View file

@ -1,11 +1,18 @@
NAME=koji
SPECFILE = $(firstword $(wildcard *.spec))
SUBDIRS = kojihub builder koji cli util www plugins vm
ifndef PYTHON
export PYTHON=python2
endif
PYVER_MAJOR := $(shell $(PYTHON) -c 'import sys; print(".".join(sys.version.split(".")[:1]))')
ifeq ($(PYVER_MAJOR),2)
SUBDIRS = builder koji cli plugins vm
else
SUBDIRS = kojihub builder koji cli util www plugins vm
endif
ifdef DIST
DIST_DEFINES := --define "dist $(DIST)"
endif