Skip to content

Don't assume that a "pyproject.toml" file is used for building #2197

@bitinerant

Description

@bitinerant

I am new to Buildozer, p4a, and Android programming in general, so I could be way off here.

That said, as a new user, I would like to suggest that p4a take a different approach to deciding whether to include only main.py vs. full private data in the .apk. I literally spent days trying to get my Kivy app to run on an Android device because of this issue. I have a pyproject.toml file but it is used exclusively for Black. However, p4a saw this file and did not copy my submodules into the .apk. In hindsight I can see that the Copying main.py's ONLY, since other app data is expected in site-packages message was in the build log, but the log is hundreds of lines long and this message went unnoticed.

The logic in question in the file bootstraps/common/build/build.py near line 257 (direct link).

Related issue: p4a isn't finding directories in apk on launch (ModuleNotFoundError).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions