diff options
Diffstat (limited to 'build.macros.in')
-rw-r--r-- | build.macros.in | 6 |
1 files changed, 5 insertions, 1 deletions
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 |