[Windows] py2exe version
1) collect all windows dependencies (imagemagick, jpegtran, ...)
2) build with py2exe
Blueprint information
Related branches
Related bugs
Sprints
Whiteboard
stani, 22/9/2009
Our plan is to follow the strategy that taskcoach
uses: to have a setup.py file and seperate make.py files for each
platform (py2exe, py2app).
Please have a look how taskcoach handles this.
Check out their subversion repository:
svn co https:/
(see http://
Read first the HACKING.txt
http://
Have a look at their setup files:
http://
http://
Note the explicit inclusion of the i18n modules. For Phatch we have to
do the same for i18n, but also for phatch/actions as they are
dynamically imported with __import__ as well.
See if you can recreate their app with:
python make.py py2exe
(see HACKING.txt)
If that works it should be trivial for Phatch as well. I know the
author of Taskcoach personally. If really necessary, I could bother
him with some questions you have. Taskcoach is very similar in
requirements as Phatch (wxpython application). So adapting their work
might be a time saver.
matysek, 29/8/2009
I think many users will appreciate standalone executables of Phatch. (without the need to install python, wx, PIL).
I would recommend trying for implementing this, the pyinstaller. The main advantage of pyinstaller, in contrast to py2exe or py2app, is that pyinstaller ( http://
Yesterday I've tried to use pyinstaller on Phatch (tutorial: http://
Only following this tutorial I was able create standalone executable of phatch on my linux box and execute it. The issue was that phatch reported some mising files and runtime errors. Perhaps not all necessary depend. were included. The folder with phatch executable and its dependecies was around ~40 MB.
When trying to create executable, the main issues I'm experiencing:
- whe looking at phatch source, it's not clear to me, how paths are handling
- some imports are not recognized by pyinstaller when using method 'fix_python_path' many times. e.g:
in phatch.core.config:
from fonts import set_font_cache
Work Items
Dependency tree
* Blueprints in grey have been implemented.