[python-win32] Embedding/bundling Python, best practices?
Mike Driscoll
mdriscoll at co.marshall.ia.us
Fri Jan 25 16:11:56 CET 2008
Arve,
>
> Message: 7
> Date: Fri, 25 Jan 2008 10:01:12 +0100
> From: "Arve Knudsen" <arve.knudsen at gmail.com>
> Subject: [python-win32] Embedding/bundling Python, best practices?
> To: python-win32 at python.org
> Message-ID:
> <a0d6258d0801250101w2785ef4i42a9db9745aa9f61 at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hello,
>
> 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 :)
>
> Thanks,
> Arve Knudsen
>
I've never done this before, but I have read about it a bit. The official
Python docs talk about it (see below):
http://www.python.org/doc/ext/embedding.html
And this article talks about it briefly:
http://www.developer.com/lang/other/article.php/2217941
Finally, I found an article that explains the difference between extending
and embedding:
http://twistedmatrix.com/users/glyph/rant/extendit.html
Why do you want to embed it? If you're just distributing an application,
you don't need to do embedding. You can just use py2exe.
Mike Driscoll
Applications Specialist
MCIS - Technology Center
1 E. Main St.
Marshalltown, IA 50158
mdriscoll at co.marshall.ia.us
641-844-2802
More information about the python-win32
mailing list