SitemapMcMillan Enterprises, Inc.Python Pages Sockets HOWTO Distributing Python Programs Download Python Archives Standalone Executables Installer Release 5 Installer Release 4 Getting Started Installer - Creating Distributions The MEInc.Dist package Installer FAQ Extensions Installer Utilities A Python C++ API Embedding Python Stackless Python MkSQL Import Hooks Java Samples Sponsoring ME Inc. About ME Inc. |
Getting StartedThe first thing to do is pick a configuration. Installer can usually build any of the following configurations with one command:
To keep build stuff separate from development stuff, I usually create a new directory and copy the top level script into that directory. Then, for example:
(Windows) If your app uses Tkinter, use the (Windows) If your app uses wxPython, or another GUI, use the (Windows) If your app uses Mark Hammond's Win32 extensions, use the You'll see a slew of warning messages go by. But for most apps, that's all there is to it!. When things go wrong......it's almost always the result of an import hack in the code you're freezing. An import hack is code that loads a module without using "import". Tracking down the hackCheck out the extensions page and see if any of those situations pertain to you. Examine the warning messages that came out when you built. (You may have to redirect the messages to a file: on Windows that means you can't use the short form of the command line - you must use There are more debugging instructions here. Fixing the problemOne way is to edit your code to do a normal "import" of the module before the hack ever runs. That way, the dependency will be tracked, the module included, and the hack will succeed at runtime. The more general way is to edit myscript.cfg, which you'll find alongside myscript.py. You'll find the config file format documented here. All Standalone, Simple and Freeze really do is fill in some blanks in some config file templates, write them out, and then execute Builder.py for you, (you'll see the command line at the top of the messages). Once you've tweaked the config file, you'll use: Most of the time, all you'll be doing is adding something to the For more information...Information about how the resulting executable works is here. How archives work is documented here. Help with common extension modules and packages is here. There are also some utilities you might find useful. Enjoy! |
| copyright 1999-2002 McMillan Enterprises, Inc. |
|