summaryrefslogtreecommitdiffstats
path: root/Makefile.python.am
diff options
context:
space:
mode:
authorPetr Spacek <pspacek@redhat.com>2016-11-11 12:37:03 +0100
committerMartin Basti <mbasti@redhat.com>2016-11-16 09:12:07 +0100
commit46b6b9e3091d08412912c37f46af497ddd0b8afb (patch)
tree3c04877fc379539e4d5e7e6d3441588737497fea /Makefile.python.am
parent27e7a89a6289d0d3009f5f7feb9802b7db171a15 (diff)
downloadfreeipa-46b6b9e3091d08412912c37f46af497ddd0b8afb.tar.gz
freeipa-46b6b9e3091d08412912c37f46af497ddd0b8afb.tar.xz
freeipa-46b6b9e3091d08412912c37f46af497ddd0b8afb.zip
Build: support --enable-silent-rules for Python packages
Setuptools will print only warnings. The option has to be used before setuptools command specification, otherwise it will not apply to sub-commands. https://fedorahosted.org/freeipa/ticket/6418 Reviewed-By: Lukas Slebodnik <lslebodn@redhat.com> Reviewed-By: Christian Heimes <cheimes@redhat.com>
Diffstat (limited to 'Makefile.python.am')
-rw-r--r--Makefile.python.am20
1 files changed, 14 insertions, 6 deletions
diff --git a/Makefile.python.am b/Makefile.python.am
index 0ea3fcf16..c9c1a1fc5 100644
--- a/Makefile.python.am
+++ b/Makefile.python.am
@@ -1,18 +1,26 @@
pkgname = $(shell basename "$(abs_srcdir)")
pkgpythondir = $(pythondir)/$(pkgname)
+if VERBOSE_MAKE
+VERBOSITY="--verbose"
+else
+VERBOSITY="--quiet"
+endif !VERBOSE_MAKE
+
all-local:
- cd $(srcdir); $(PYTHON) setup.py build \
- --build-base "$(abs_builddir)/build" \
- --verbose
+ cd $(srcdir); $(PYTHON) setup.py \
+ $(VERBOSITY) \
+ build \
+ --build-base "$(abs_builddir)/build"
install-exec-local:
- $(PYTHON) $(srcdir)/setup.py install \
+ $(PYTHON) $(srcdir)/setup.py \
+ $(VERBOSITY) \
+ install \
--prefix "$(DESTDIR)$(prefix)" \
--single-version-externally-managed \
--record "$(DESTDIR)$(pkgpythondir)/install_files.txt" \
- --optimize 1 \
- --verbose
+ --optimize 1
uninstall-local:
cat "$(DESTDIR)$(pkgpythondir)/install_files.txt" | xargs rm -rf