From dc66521ceb65bc9301aba18aa63ccbd36ebe87c2 Mon Sep 17 00:00:00 2001 From: Yu Ming Zhu Date: Tue, 11 Dec 2018 09:47:47 +0000 Subject: [PATCH] misc changes for build and test --- .coveragerc3 | 2 -- koji/Makefile | 13 +++---------- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/.coveragerc3 b/.coveragerc3 index 3e60769a..b2b47e03 100644 --- a/.coveragerc3 +++ b/.coveragerc3 @@ -7,8 +7,6 @@ omit = tests/* hub/* util/* - koji/daemon.py - koji/tasks.py [report] exclude_lines = diff --git a/koji/Makefile b/koji/Makefile index 4abb93ba..7a3925a7 100644 --- a/koji/Makefile +++ b/koji/Makefile @@ -1,14 +1,7 @@ PACKAGE = $(shell basename `pwd`) -ifeq ($(PYTHON), python3) - # for python3 we fully support only basic library + CLI - PYFILES = __init__.py util.py plugin.py xmlrpcplus.py - PYSCRIPTS = - SUBDIRS = -else - PYFILES = $(wildcard *.py) - PYSCRIPTS = context.py - SUBDIRS = -endif +PYFILES = $(wildcard *.py) +PYSCRIPTS = +SUBDIRS = PYVER := $(shell $(PYTHON) -c 'import sys; print("%.3s" % (sys.version))') PYSYSDIR := $(shell $(PYTHON) -c 'import sys; print(sys.prefix)') PYLIBDIR = $(PYSYSDIR)/lib/python$(PYVER)