Arve Knudsen wrote:
> We're planning to embed Python in our application, which mainly runs
> on Windows. To avoid dependencies, we want to bundle Python. Do any of
> you know of any resources on the Web describing best practices for
> bundling Python with an application, particularly on Windows? I have
> googled a bit, but most advice I found was to extend Python instead of
> embedding it, which wasn't very helpful :)
>   

This is not really that hard to do.  The Python interpreter lives in a 
DLL (python25.dll).  You just need to call it like any other Windows 
DLL.  You have the issue of providing any plugin modules that you need.

There's a tendency to think that the work is all done in python.exe, 
which would make it difficult to integrate with other applications, but 
that's not the case.  Python.exe contains less than 900 bytes of 
executable code.  (The whole exe is less than 5k!)  It does very little 
other than load python25.dll and call it.

-- 
Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.

_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to