469,915 Members | 2,697 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,915 developers. It's quick & easy.

Freeze without a binary

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.

Apr 18 '06 #1
0 747

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

11 posts views Thread by Timothy Shih | last post: by
2 posts views Thread by mrstephengross | last post: by
2 posts views Thread by kristian.hermansen | last post: by
reply views Thread by William Dode | last post: by
2 posts views Thread by paraidy | last post: by
1 post views Thread by jmalone | last post: by
reply views Thread by jm.suresh | last post: by
reply views Thread by jm.suresh | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.