diff options
Diffstat (limited to 'build.macros.in')
-rw-r--r-- | build.macros.in | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/build.macros.in b/build.macros.in index 77f5148..6c5d720 100644 --- a/build.macros.in +++ b/build.macros.in @@ -305,7 +305,7 @@ export CFLAGS="%optflags"; export CXXFLAGS="%optflags"; export RPM_OPT_FLAGS="%o %__os_install_post \ %{?__spec_helper_post}%{?!__spec_helper_post:/usr/share/spec-helper/spec-helper} \ %{!?__jar_repack:/usr/lib/rpm/mageia/brp-java-repack-jars} \ - %{!?__brp-python-bytecompile:/usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1} \ + %{!?__brp-python-bytecompile:[ %{?_python_bytecompile_build} -eq 1 ] && /usr/lib/rpm/brp-python-bytecompile %{__python} %{?_python_bytecompile_errors_terminate_build}} \ %{!?__brp-python-hardlink:/usr/lib/rpm/brp-python-hardlink} \ %{nil} @@ -342,6 +342,12 @@ export CFLAGS="%optflags"; export CXXFLAGS="%optflags"; export RPM_OPT_FLAGS="%o # Useful python macros %pyver %(python -V 2>&1 | cut -f2 -d" " | cut -f1,2 -d".") +# Should python bytecompilation errors terminate a build? +%_python_bytecompile_errors_terminate_build 1 + +# Enable python bytecompilation +%_python_bytecompile_build 1 + #------------------------------------------------------------------------------ # Useful perl macros # (initially from Artur Frysiak <wiget@t17.ds.pwr.wroc.pl>) |