Everyone suggests switch from py2exe to PyInstaller for making a standalone executable from Python scripts. Our first trial is to make a wxPython application which makes usage of lots of 2 stage creation with XRC. It seems the building process of PyInstaller doesn't include those modules specified in .xrc files and I am wondering if we can utilize hidden imports feature or other alternatives. Any ideas?
Asked
Active
Viewed 1,395 times
1 Answers
0
You might find this helpful: http://www.blog.pythonlibrary.org/2010/08/10/a-pyinstaller-tutorial-build-a-binary-series/
PyInstaller's documentation also explains how to include and exclude stuff:
My guess is you need to explicitly include wx.xrc

Mike Driscoll
- 32,629
- 8
- 45
- 88
-
Interestly, I still couldn't figure out how to ask PyInstaller include some modules explicitly cause my issues is not wx.xrc, but the declared subclass in some .xrc files. – Drake Guan Mar 17 '11 at 05:35
-
Can you provide a simple sample app? – Mike Driscoll Mar 17 '11 at 12:55