Differences between revisions 1 and 2
Revision 1 as of 2004-05-13 06:00:05
Size: 592
Editor: zoran-fw1
Comment:
Revision 2 as of 2004-05-13 06:01:11
Size: 593
Editor: zoran-fw1
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
An embedded Python project relies on several modules. Finding this modules is very easy using py2exe. An embedded Python project relies on several modules. Finding these modules is very easy using py2exe.
Line 5: Line 5:
Create a ''setup.py'' script in the following format: Create a ''setup.py'' script with the following lines:
Line 15: Line 15:
wpython setup.py py2exe --includes mymodule python setup.py py2exe --includes mymodule

How can py2exe help shipping emedded Python projects

An embedded Python project relies on several modules. Finding these modules is very easy using py2exe.

Create a setup.py script with the following lines:

from distutils.core import setup
import py2exe

setup()

And then run it with your script in the command line

python setup.py py2exe --includes mymodule

This will create a dist directory with all the files you're embedded python needs. Rename library.zip to python23.zip and place all the files in the application directory.

ShippingEmbedded (last edited 2008-07-08 11:27:44 by localhost)