@@ -85,31 +85,35 @@ At the top level, this will always contain the same set of files::
85
85
AndroidManifest.xml classes.dex META-INF res
86
86
assets lib YourApk.apk resources.arsc
87
87
88
- The Python distribution is in the assets folder::
88
+ The user app data (code, images, fonts ..) is packaged into a single tarball contained in the assets folder::
89
89
90
90
$ cd assets
91
91
$ ls
92
- private.mp3
92
+ private.tar
93
93
94
- ``private.mp3 `` is actually a tarball containing all your packaged
95
- data, and the Python distribution . Extract it::
94
+ ``private.tar `` is a tarball containing all your packaged
95
+ data. Extract it::
96
96
97
- $ tar xf private.mp3
97
+ $ tar xf private.tar
98
98
99
- This will reveal all the Python-related files::
99
+ This will reveal all the user app data (the files shown below are from the touchtracer demo) ::
100
100
101
101
$ ls
102
- android_runnable.pyo include interpreter_subprocess main.kv pipinterface.kv settings.pyo
103
- assets __init__.pyo interpreterwrapper.pyo main.pyo pipinterface.pyo utils.pyo
104
- editor.kv interpreter.kv _python_bundle menu.kv private.mp3 widgets.pyo
105
- editor.pyo interpreter.pyo libpymodules.so menu.pyo settings.kv
102
+ README.txt android.txt icon.png main.pyc p4a_env_vars.txt particle.png
103
+ private.tar touchtracer.kv
106
104
107
- Most of these files have been included by the user (in this case, they
108
- come from one of my own apps), the rest relate to the python
109
- distribution.
105
+ Due to how We're required to ship ABI-specific things in Android App Bundle,
106
+ the Python installation is packaged separately, as (most of it) is ABI-specific.
107
+
108
+ For example, the Python installation for ``arm64-v8a `` is available in ``lib/arm64-v8a/libpybundle.so ``
109
+
110
+ ``libpybundle.so `` is a tarball (but named like a library for packaging requirements), that contains our ``_python_bundle ``::
111
+
112
+ $ tar xf libpybundle.so
113
+ $ cd _python_bundle
114
+ $ ls
115
+ modules site-packages stdlib.zip
110
116
111
- The python installation, along with all side-packages, is mostly contained
112
- inside the `_python_bundle ` folder.
113
117
114
118
115
119
Common errors
0 commit comments