[Windows] py2exe version
1) collect all windows dependencies (imagemagick, jpegtran, ...)
2) build with py2exe
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:/
Read first the HACKING.txt
Have a look at their setup files:
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
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.
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:
from fonts import set_font_cache
* Blueprints in grey have been implemented.