Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed (broken) --no-byte-compile-pyo support and added support for --no-byte-compile-python #1525

Merged
merged 1 commit into from
Nov 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions buildozer/default.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions buildozer/targets/android.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down