Embedded Python.

W

winlinchu

I would want to embed Python interpreter in an application, but only
the
interpreter without the modules of the standard library (unless sys,
builtin or some others, that are indispensables). In "setup.py" of the
source tree, there is a variable that must contain the list of modules
to not install. I have added some modules, but does not work.

How can I do? Thanks.
 
P

Phil Frost

I would want to embed Python interpreter in an application, but only
the
interpreter without the modules of the standard library (unless sys,
builtin or some others, that are indispensables). In "setup.py" of the
source tree, there is a variable that must contain the list of modules
to not install. I have added some modules, but does not work.

How can I do? Thanks.

The list of modules to build into the library is in Modules/Setup. By
default this contains only essential modules.
 
W

winlinchu

I would want to embed Python interpreter in an application, but only
the
interpreter without the modules of the standard library (unless sys,
builtin or some others, that are indispensables). In "setup.py" of the
source tree, there is a variable that must contain the list of modules
to not install. I have added some modules, but does not work.

How can I do? Thanks.

I don't want to create an executable from Python sources (I use Linux,
not Windows), but a normal C application with Python included. In my
application I don't need of modules which socket, xml, or some others.
Therefore, why I must to compile/install?

Thanks for all.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,209
Messages
2,571,088
Members
47,684
Latest member
sparada

Latest Threads

Top