From 32f1d0f71344a0db433b1cd39aa98e311c50e7a8 Mon Sep 17 00:00:00 2001 From: Cleber Rosa Date: Thu, 23 Apr 2015 16:01:11 -0300 Subject: [PATCH] Makefile: replace source tarball generation from distutils to git It was noted that, on some Python version, the generated tarballs actually have a lot of files missing. IMHO, if we track a file on git, then it should make into the tarball. Also IMHO, the distutils sdist code is a nice thing to have if you can't export your code right from your SCM. This is kept simple on purpose so that if we hit any unintended side effect we can revert to the previous way of generation source tarballs. Signed-off-by: Cleber Rosa --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 78c59619..bd6f42e0 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,8 @@ all: @echo "make clean - Get rid of scratch and byte files" source: - $(PYTHON) setup.py sdist $(COMPILE) --dist-dir=SOURCES --prune + if test ! -d SOURCES; then mkdir SOURCES; fi + git archive --prefix="avocado-$(VERSION)/" -o "SOURCES/avocado-$(VERSION).tar.gz" HEAD install: $(PYTHON) setup.py install --root $(DESTDIR) $(COMPILE) -- GitLab