Home:ALL Converter>Building a static version of Python - modules statically available

Building a static version of Python - modules statically available

Ask Time:2015-03-04T17:58:31         Author:aris

Json Formatter

We are trying to build a portable version of Python that can run on any system (with any or no python installed) in order to run our application there.

All is fine except that we want to have some modules available statically that should be uncommented at:

/Modules/Setup

The problem is that we do not want to alter the Setup file and need to find some other way to uncomment the modules needed to be included statically.

Is it possible to somehow do it via the ./configure script or setup.py? (i.e. supply the name of the modules and build them statically)

Thanks!

Author:aris,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/28851432/building-a-static-version-of-python-modules-statically-available
yy