|
|
Log in / Subscribe / Register

Python on mobile systems

Python on mobile systems

Posted Apr 23, 2015 2:29 UTC (Thu) by mathstuf (subscriber, #69389)
Parent article: Python on mobile systems

It is possible to get a fully self-contained, static Python build (we do it and even include NumPy using some truly evil hackery to deal with NumPy's nasty build setup). There is a patch required though to reconcile some problems with built-in and frozen modules under the same module path, but it is minor (and it is Python2, so no hope of it getting applied).

Basically, we use a CMake build instead to build the required modules, optionally builtin, with a flag for freezing the Python code. Then, we build NumPy statically after running its build to grab its configured sources. The application then injects NumPy into the built-in tables just like its own modules. Not pretty, but when you need to support machines without shared library support and slow disks (supercomputers), there's not much that will be pretty in the end.


to post comments


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds