mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
[3.13] gh-131531: Add android.py package
command (GH-131532) (#131960)
Adds a `package` entry point to the `android.py` build script to support
creating an Android distribution artefact.
(cherry picked from commit fe5c4c53e7
)
Co-authored-by: Malcolm Smith <smith@chaquo.com>
This commit is contained in:
parent
67087d9327
commit
38943bef25
7 changed files with 287 additions and 124 deletions
|
@ -27,9 +27,8 @@ details.
|
|||
Adding Python to an Android app
|
||||
-------------------------------
|
||||
|
||||
These instructions are only needed if you're planning to compile Python for
|
||||
Android yourself. Most users should *not* need to do this. Instead, use one of
|
||||
the following tools, which will provide a much easier experience:
|
||||
Most app developers should use one of the following tools, which will provide a
|
||||
much easier experience:
|
||||
|
||||
* `Briefcase <https://briefcase.readthedocs.io>`__, from the BeeWare project
|
||||
* `Buildozer <https://buildozer.readthedocs.io>`__, from the Kivy project
|
||||
|
@ -42,10 +41,11 @@ If you're sure you want to do all of this manually, read on. You can use the
|
|||
link to the relevant file.
|
||||
|
||||
* Build Python by following the instructions in :source:`Android/README.md`.
|
||||
This will create the directory ``cross-build/HOST/prefix``.
|
||||
|
||||
* Add code to your :source:`build.gradle <Android/testbed/app/build.gradle.kts>`
|
||||
file to copy the following items into your project. All except your own Python
|
||||
code can be copied from ``cross-build/HOST/prefix/lib``:
|
||||
code can be copied from ``prefix/lib``:
|
||||
|
||||
* In your JNI libraries:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue