From 94283c6b2345ca462b96f877f7510670a2ac1188 Mon Sep 17 00:00:00 2001 From: Mirko Galimberti Date: Sat, 5 Nov 2022 11:15:52 +0100 Subject: [PATCH] Removed (broken) --no-byte-compile-pyo support and added support for --no-byte-compile-python --- buildozer/default.spec | 4 ++-- buildozer/targets/android.py | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/buildozer/default.spec b/buildozer/default.spec index d5269b837..f6744845b 100644 --- a/buildozer/default.spec +++ b/buildozer/default.spec @@ -283,8 +283,8 @@ android.allow_backup = True # Usage example : android.manifest_placeholders = [myCustomUrl:\"org.kivy.customurl\"] # android.manifest_placeholders = [:] -# (bool) disables the compilation of py to pyc/pyo files when packaging -# android.no-compile-pyo = True +# (bool) Skip byte compile for .py files +# android.no-byte-compile-python = False # (str) The format used to package the app for release mode (aab or apk or aar). # android.release_artifact = aab diff --git a/buildozer/targets/android.py b/buildozer/targets/android.py index 57bd0abf9..03b2fb428 100644 --- a/buildozer/targets/android.py +++ b/buildozer/targets/android.py @@ -980,10 +980,10 @@ def execute_build_package(self, build_cmd): cmd.append('--manifest-placeholders') cmd.append("{}".format(manifest_placeholders)) - # support disabling of compilation - compile_py = self.buildozer.config.getdefault('app', 'android.no-compile-pyo', None) - if compile_py: - cmd.append('--no-compile-pyo') + # support disabling of byte compile for .py files + no_byte_compile = self.buildozer.config.getdefault('app', 'android.no-byte-compile-python', False) + if no_byte_compile: + cmd.append('--no-byte-compile-python') for arch in self._archs: cmd.append('--arch')