Statically linking standard Python modules into an application

Gerhard Häring gh_pythonlist at gmx.de
Wed Mar 13 19:10:56 EST 2002


Le 13/03/02 à 16:44, Brian Forney écrivit:
> [...] Is there a way to statically link in all of the standard modules
> *and* the Python library *and* keep the Python library from calling
> dlopen() for standard modules?

You need to edit Modules/Setup, then rebuild Python. In theory, putting
a "*static*" line at the top, then adding the modules normally built
with distutils to this file should do the trick.

Gerhard




More information about the Python-list mailing list