On Aug 15, 12:15 pm, Martin Zibricky <[email protected]> wrote:
> Jeremy Sanders píše v So 13. 08. 2011 v 11:20 -0700:
>
>
> > * The PyQt hooks seem to pull in all the PyQt modules. I'm only using
> > a few of them. Can I exclude them or do I have to modify the hook
> > file? Can I remove unwanted plugins also?
>
> What all modules do you use? And how do you import them in your code?
>
> Many qt plugins depend on more qt modules even when you don't use them
> directly.

I'm using QtCore, QtGui, QtSvg and QtXml (indirectly). I managed to
rip out the ones I didn't want by removing them from the pyinstaller
output, however.

> > * I get the debugging DLLs from Qt included in the distribution
> > Qt*d.dll. Does anyone know how to get these excluded? As far as I know
> > PyQt shouldn't be using these DLLs. I suspect they are included
> > because pyinstaller picks up the debugging version of the qt plugins,
> > which then pulls in the debugging version of the qt libraries. I think
> > pyinstaller should exclude the files *d4.dll from the plugin
> > directories, which are debugging library plugins
>
> Where did you get PyQt binaries?

I'm using Qt from the Nokia site. I built PyQt myself as I need to
also build some other modules against Qt itself using SIP. Perhaps the
PyQt from the Riverbank site leaves out the debugging libraries, but I
haven't checked.

I've managed to strip out the debugging libraries by editing the file
list from pyinstaller. Unfortunately the debugging C library remains
in the manifest of the exe file, so I have to remove that by hand too.
It seems to work after I have done that however.

Jeremy

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pyinstaller?hl=en.

Reply via email to