build a static executable program with python
davidf at sjsoft.com
Thu Dec 30 13:12:33 CET 2004
Torsten Mohr wrote:
> i'd like to build an executable file that is linked with
> a python library and executes a script via PyRun_SimpleString
> or similar functions.
> Is there a static library of python available, so the users
> don't need to install python?
> What about DLL modules, do i just need to compile them
> as a static lib, link them together with my program and
> call their init function?
> What about python modules, can i just use a tool like
> "freeze" or "py2exe" to break up the import hierarchy
> and call them before my script?
> Is there some more information about building a static
> executable available?
> Thanks for any hints,
Just have a look at py2exe, it does basically what you're asking for -
see the link to the wiki from the py2exe home page for more information...
More information about the Python-list