Freeze without a binary

I

imdognuts

I want to use freeze to create the .o's to then include in a library
that will be distributed. When I use freeze it creates a binary and a
main, and the main calls some frozenmain func. Obviously I dont want a
main() in this code. Do I need to extract the code that was generated
by freeze in main like Py_FrozenMain() and call this from somewhere
else? This was created in the main() function:

extern int Py_FrozenMain(int, char **);

PyImport_FrozenModules = _PyImport_FrozenModules;
return Py_FrozenMain(argc, argv);


In my code i have C funcs that call py file functions which call C
funcs. I dont want to ship the py files, but include it in a library
with the other .o's
Thanks.
 

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

Forum statistics

Threads
474,293
Messages
2,571,502
Members
48,189
Latest member
StaciLgf76

Latest Threads

Top