Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 1.76 KB

README.md

File metadata and controls

26 lines (20 loc) · 1.76 KB

Moved. python is now a package of ex-pkg: the real CPython built from the build scripts of Termux for the prefix of Jaric (full standard library, ssl, sqlite3, ctypes, pip as python-pip), updated with ex update. Install it with ex install python (or ex pkg install python). This launcher is no longer listed and gets no more updates.

python: Python 3.14 for the Jaric app and Android ARM64

The official build of python.org for Android (libpython3.14.so, 21 MB packed) with a small launcher written in Jex (python.jex, built with jexcmp -dyn; it opens the library with <native> and calls Py_BytesMain). The launcher sets PYTHONHOME and SSL_CERT_FILE itself, so nothing else is needed. Works in Termux and in the Jaric app. ssl, sqlite3, zlib, json, ctypes are there; no pip yet and no tkinter.

python3 -c "print(1 + 1)"
python3 script.py

Without Jaric it is on its own: the launcher finds the folder python-android next to itself (about 78 MB open, 13 MB to fetch).

Install

ex install python
curl -fsSL https://raw.githubusercontent.com/C2k-studio/ex-pkg/main/install.sh | sh -s python     # with curl

python3 is a link to python. In jsh: ex install python.

A short lesson

  1. Check: python3 --version, then python3 -c "import ssl; print(ssl.OPENSSL_VERSION)".
  2. A script: write hello.py with print("hello"), run python3 hello.py.
  3. The web: python3 -c "import urllib.request as u; print(u.urlopen('https://www.python.org').status)" prints 200.
  4. The tool yt-dlp runs on this Python.

Build (for the maker): sh release.sh JCMP python-3.14.0-aarch64-linux-android.tar.gz (the tarball from https://www.python.org/ftp/python/3.14.0/). Licenses: the launcher MPL-2.0, Python PSF License.