aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2018-09-24 11:43:35 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2018-09-24 11:52:29 +0200
commit56b53e86fb0910624c340c806e374f3c6113bf40 (patch)
treeab4807d6e74021398ff8ff19de07d8c285ad35d2
parent191d8f04b4c826e0c5fbe509f150ef7198aaf715 (diff)
downloadrpm-setup-56b53e86fb0910624c340c806e374f3c6113bf40.tar
rpm-setup-56b53e86fb0910624c340c806e374f3c6113bf40.tar.gz
rpm-setup-56b53e86fb0910624c340c806e374f3c6113bf40.tar.bz2
rpm-setup-56b53e86fb0910624c340c806e374f3c6113bf40.tar.xz
rpm-setup-56b53e86fb0910624c340c806e374f3c6113bf40.zip
Automatically compile python files
-rw-r--r--NEWS1
-rw-r--r--build.macros.in4
2 files changed, 5 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 1ffda0b..28f000d 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,5 @@
- add __brp_mangle_shebangs in order to fix /bin -> /usr/bin & "env foobar"
+- automatically compile python files
Version 2.35 - 24 September 2018, by Thierry Vignaud
diff --git a/build.macros.in b/build.macros.in
index e37e157..1db4757 100644
--- a/build.macros.in
+++ b/build.macros.in
@@ -474,6 +474,10 @@ fi
%_missing_build_ids_terminate_build 1
#
+## Automatically compile python files
+%py_auto_byte_compile 1
+
+#
## Should python bytecompilation errors terminate a build?
%_python_bytecompile_errors_terminate_build 1
## Should python bytecompilation compile outisde python specific directories?