diff --git a/obs/slapos/templates/slapos.spec.in b/obs/slapos/templates/slapos.spec.in
index 8d67ebfd2da0e7a482e865d319df5e10127a8b01..498dfa71ba2fefb67bb7f7801a2f711aba443162 100644
--- a/obs/slapos/templates/slapos.spec.in
+++ b/obs/slapos/templates/slapos.spec.in
@@ -24,6 +24,10 @@
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 #
 ##############################################################################
+# Turn off the brp-python-bytecompile script
+%global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g')
+ 
+
 %define slapversion %RECIPE_VERSION%
 %define version %VERSION%
 %define unmangled_version %VERSION%