Skip to content

Tree-Shake python dependencies #26

Open
@baseplate-admin

Description

@baseplate-admin

Discussed in https://github.com/orgs/kivy/discussions/22

Originally posted by baseplate-admin January 5, 2024
As it stands,

The apk generated by python-for-android are large in size and nature.

I was wondering if it was possible to tree shake the android venv to reduce size.

Possible paths :

  • Compile python with bare minimum: This means we remove the stdlib to a bare minimum for our app to function.
  • Remove codes from venv : Tools like dead and vulture can be of use here.
  • Use better compression algorithm : Maybe support brotli/zstd instead of .zip ( or maybe even 7-zip )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions