My application is as follows:
main.py
windows /
__init__.py
mainwindow.py
...
model /
__init__.py
orders.py
...
resources /
image1.png
logo.jpg
...
The program starts with main.py. Is there a good way to create a โfinalโ application from it? I am thinking of something like py2exe / py2app, but not copying the python interpreter / modules into an application that has only one executable.
I looked at distutils, but it looks like it is installing the program in the Python directory, which is not common on platforms other than Linux.
For the moment, I'm just copying the entire source folder to the target machine and creating the main.pyw alias in the windows. Some inconveniences:
- The icon is the default python icon.
- I need to create an alias manually.
- There are many additional files in my source directory, such as a source folder.
- I need to manually rename
main.py to main.pyw . - It would be nice if only .pyo * files are on the target machine. There is no real reason for this; I just don't like having unnecessary files.
How to create a good automatic distribution?
- for windows? (This is the only platform I should support at the moment.)
- for mac?
- for linux?
python distribution
Georg Schรถlly Oct 13 '09 at 5:48 2009-10-13 05:48
source share