General Tips and Tricks¶
- Options - How to see the list of available options for your setup.py script
- Running setup - How to run the setup script once you've written it
- Missing encodings - Problem with encodings and when they are not found in a standalone executable
- Default encoding - They really keep bugging. Solution to problem with different site.py
- Configuration files - How can you add arbitrary files to your py2exe-Setup?
- Path module - Using Jason Orendorffs python Path module together with py2exe 0.5
- Passing options - Avoid using sys.argv to pass options
- Customizing the build - Customizing the build process
- Icons - How to get your own icons with py2exe 0.5
- Tkinter - I do not need any tkinter / tcl-Libs in my Setup
- Filename case - Some windows filing systems mangle case, break py2exe programs
- Batch builds - A short Windows Batch File to fast provide the EXE File
- Excluding DLLs - Stopping py2exe from picking up unwanted DLLs
- Embedded Python - How to use py2exe to ship embedded Python modules
- Single file executables - Native bundling and installers with NSIS
- Optimized bytecode - How to get optimized bytecode for all modules
- Embedded resources - Add custom data in the executable?
- Detecting frozen programs - Simple functions to determine if you're in an .exe or .py
- Locating the executable - sometimes you need to now where your exe is within the filesystem
- Environment - Information about the environment for the executable
- Windows services - some gained knowledge
- GUI console output - dealing with stdout
- Error logging - How does py2exe handle stack track printing and STDERR? How can Ichange that behaviour?
- SOAPpy - How to get SOAPpy working with py2exe.
- PyBuilder - A Gui interface to compile easier and faster.
- DLL inclusion rules - how to override the criteria that py2exe uses to determine whether a DLL should be included in the distributed package.
- Warnings - what to do to avoid warnings in windows (no console) mode getting into application errors.
- Distribution size - how to make your distribution as small as possible
- Comparing missing files - a quick script for finding missing files, packages, and modules.