提交 b6a329a0 编写于 作者: C Cleber Rosa

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: NCleber Rosa <crosa@redhat.com>
上级 19473001
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册