I have pygtk,pyqt4 and wxpython installed on my windows machine and
for a script which uses matplotlib (which has pygtk,pyqt4,wxpython,tk
support) it bundles files for all the supported toolkits.
within the main script I have
...
import gtk
import gobject
from matplotlib.backends.backend_gtkagg import FigureCanvasGTKAgg as
FigureCanvas
from matplotlib.backends.backend_gtkagg import
NavigationToolbar2GTKAgg as NavigationToolbar
...
and it only load gtk when run from the *.py.
Any help to limit this would be grateful, talking about the difference
between a 15meg bundled and a 30meg bundled
This is probably caused by matplotlib trying to detect several backends
and pyinstaller detects that it import PyQt4, gtk and wxpython.
There is no specific option for pyinstaller.
One option could be to have python environment with only one library.
the hook file for matplotlib.backend includes hardcoded list of all
backends. Probably to customize this hook file could solve your issue.
./PyInstaller/hooks/hook-matplotlib.backends.py