python-for-android icon indicating copy to clipboard operation
python-for-android copied to clipboard

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

Open bitinerant opened this issue 5 years ago • 0 comments

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).

bitinerant avatar May 13 '20 20:05 bitinerant