From 2384e85968fad813eb555807055b7ca18ed92ecf Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 24 Sep 2018 10:00:54 +0200 Subject: split&sync %__brp_python_bytecompile with upstream Thus using "%global __python %{__python3}" enables to properly fix python3 bytecompiling Also recognize %_python_bytecompile_extra for compiling outisde python specific directories --- build.macros.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'build.macros.in') diff --git a/build.macros.in b/build.macros.in index 286ccdb..09c96d5 100644 --- a/build.macros.in +++ b/build.macros.in @@ -445,9 +445,11 @@ fi #--------------------------------------------------------------------- # Expanded at end of %install scriptlet. +%__brp_python_bytecompile /usr/lib/rpm/brp-python-bytecompile "%{__python}" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}" + %__os_install_post \ %{?__spec_helper_post}%{?!__spec_helper_post:/usr/share/spec-helper/spec-helper} \ - %{?__brp_python_bytecompile} \ + %{?py_auto_byte_compile:%{?__brp_python_bytecompile}} \ %{?__brp_python_hardlink}%{!?__brp_python_hardlink:/usr/lib/rpm/brp-python-hardlink} \ %{nil} @@ -467,6 +469,8 @@ fi # ## Should python bytecompilation errors terminate a build? %_python_bytecompile_errors_terminate_build 1 +## Should python bytecompilation compile outisde python specific directories? +%_python_bytecompile_extra 1 # Use SHA-256 for FILEDIGESTS instead of default MD5 %_source_filedigest_algorithm 8 -- cgit v1.2.1