mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
[3.13] gh-131531: android.py enhancements to support cibuildwheel (GH-132870) (#135164)
Modifies the environment handling and execution arguments of the Android management
script to support the compilation of third-party binaries, and the use of the testbed to
invoke third-party test code.
(cherry picked from commit 2e1544fd2b
)
Co-authored-by: Malcolm Smith <smith@chaquo.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
This commit is contained in:
parent
68f8eed6ff
commit
fd39aa3a7f
11 changed files with 241 additions and 92 deletions
|
@ -63,3 +63,12 @@ link to the relevant file.
|
|||
* Add code to your app to :source:`start Python in embedded mode
|
||||
<Android/testbed/app/src/main/c/main_activity.c>`. This will need to be C code
|
||||
called via JNI.
|
||||
|
||||
Building a Python package for Android
|
||||
-------------------------------------
|
||||
|
||||
Python packages can be built for Android as wheels and released on PyPI. The
|
||||
recommended tool for doing this is `cibuildwheel
|
||||
<https://cibuildwheel.pypa.io/en/stable/platforms/#android>`__, which automates
|
||||
all the details of setting up a cross-compilation environment, building the
|
||||
wheel, and testing it on an emulator.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue