From b6a329a0c9d30103d7340ff5ab64e2eab22f9afe Mon Sep 17 00:00:00 2001 From: Cleber Rosa Date: Thu, 11 Aug 2016 17:31:21 -0300 Subject: [PATCH] Makefile: use setup.py for getting the current versions Under some circumstances, getting the version indirectly through `avocado/core/version.py` can return `unknown.unknown`. Let's use the authoritative source for version numbers: `setup.py` itself. Signed-off-by: Cleber Rosa --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ef9e5a79..36c659e3 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ PYTHON=$(shell which python) PYTHON26=$(shell $(PYTHON) -V 2>&1 | grep 2.6 -q && echo true || echo false) -VERSION=$(shell $(PYTHON) $(CURDIR)/avocado/core/version.py) +VERSION=$(shell $(PYTHON) setup.py --version) DESTDIR=/ BUILDIR=$(CURDIR)/debian/avocado PROJECT=avocado -- GitLab