It is possible to install a “full-custom” build with some Python support in the ROM on a 16 MB, ath79 device. However, all of LuCI and all of the great GL.iNet features need to be removed.
My notes seem to indicate that I could install python3-lite and python3-pip, but that’s about all (Python 2 is EOL).

As a heads up, even on a larger-capacity device, only “pure Python” modules can be installed with pip. This is because OpenWrt doesn’t provide the ability to compile source code and link firmware on the device itself in any reasonable way. Other modules would need to either already exist as OpenWrt packages, or have a package crafted for them and built on a separate Linux-based OS machine, then installed on the device.

I don’t know what you’re intending to do with Python, but I wouldn’t consider anything very compute or memory intensive on any all-in-one router1. The lack of RAM, typically 32-bit architectures, and lack of an FPU are not well-suited for “fancy” applications. A single-core device adds in the challenge that if the CPU is swamped by a running application, the routing performance is going to suffer.

1 The Brume with its 1 GB of RAM and dual-core ARM processor a notable exception to this. As I understand it, it also runs Ubuntu, which is better suited for general or advanced Python use than is OpenWrt.

1 Like