Skip to content

Python 3.14.0 Free-Threading for Termux ARM64

Latest

Choose a tag to compare

@Fibogacci Fibogacci released this 23 Oct 22:11
· 11 commits to master since this release

Python 3.14.0 Free-Threading for Termux ARM64

Update (2025-10-24): Package updated with fixes from real Termux testing.

What's Fixed

install.sh improvements:

  • Automatically configures ~/.bashrc with PATH and LD_LIBRARY_PATH
  • Interactive prompt for configuration
  • Forces installation to ~/.local to avoid system conflicts
  • Only installs python3.14t binary (no symlink overwrites)

README simplification:

  • Clearer installation steps
  • Better verification instructions
  • Removed verbose content (available in main repo)

Installation

Download and install:

wget https://github.com/Fibogacci/python314t-for-termux/releases/download/v3.14.0/termux-python314t-3.14.0.tar.gz
tar -xzf termux-python314t-3.14.0.tar.gz
cd termux-python314t-3.14.0
bash install.sh
source ~/.bashrc

Verify:

python3.14t --version
python3.14t -c "import sys; print(f'GIL: {sys._is_gil_enabled()}')"

Expected: GIL: False


Technical Details

  • Architecture: ARM aarch64 (64-bit)
  • Platform: Android 7.0+ (API 24+)
  • Build: Cross-compiled from Linux x86_64
  • Compiler: Clang 18.0.4 (Android NDK 27.3.13750724)
  • Package size: 21MB compressed, 67MB uncompressed

Package Contents

  • python3.14t executable (6.9KB)
  • libpython3.14t.so shared library (31MB)
  • Python 3.14t standard library (34MB, optimized)
  • C headers for extension development (2.6MB)

Performance

  • Multi-threaded CPU-bound tasks: 1.5-2.5x speedup on 4-core devices
  • Single-threaded overhead: ~5-10% (expected for free-threading)

Known Limitations

  • pip not included by default (install via get-pip.py)
  • Some C extensions may need recompilation for free-threading
  • GUI modules removed (tkinter, idlelib)
  • Test suite removed for size optimization

Tested on: Real Termux Android ARM64 device
License: MIT (packaging) + PSF License (Python binaries)
Author: Filip Bogacz (Fibogacci)