From 6da2389eba8216ff61d794eddb86dea8514b1ff2 Mon Sep 17 00:00:00 2001 From: Todd Zullinger Date: Sun, 17 Jun 2018 13:18:21 -0400 Subject: [PATCH] Disable automatic compilation of Python files in /usr/share/rpmlint The rpmlint build process byte compiles these, so no manual byte compilation is needed. (The make definition COMPILE_PYC has been used since 83a9a35 (2009-11-02). Prior to that a patch was applied to byte compile in %build.) --- rpmlint.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rpmlint.spec b/rpmlint.spec index 7458712..0b1be91 100644 --- a/rpmlint.spec +++ b/rpmlint.spec @@ -4,6 +4,9 @@ %bcond_with python3 %endif +# Disable automatic compilation of Python files in /usr/share/rpmlint +%global _python_bytecompile_extra 0 + %if %{with python3} %global python %{__python3} %global pytest %(ls -1 %{_bindir}/py.test-3* | tail -n 1) @@ -141,6 +144,7 @@ make check PYTHON=%{python} PYTEST=%{pytest} FLAKE8=%{flake8} * Sun Jun 17 2018 Todd Zullinger - 1.10-15 - Fix mixed-use-of-spaces-and-tabs warning (in this spec file) - Remove el4/el5 configs and /usr/bin symlinks +- Disable automatic compilation of Python files in /usr/share/rpmlint * Tue Jun 12 2018 Miro HronĨok - 1.10-14 - apply upstream fix for python 3.7 new magic numbers