On 14/08/11 06:20, Jeremy Sanders wrote:
Hi - I have some more minor issues maybe someone could help me with.
I'm using the latest svn version of pyinstaller on windows (Python
2.7). I'm using numpy and PyQt in my program.
* Why does KERNEL32.DLL get put in my distribution? Presumably this
shouldn't be included. How can I debug where this came from? Can I
remove it in my spec file?
I think you have to do something like this:
a = Analysis(...)
...
a.binaries = [x for x in a.binaries if not
os.path.dirname(x[1]).startswith("C:\\Windows\\system32")]
When I tested it last week this was fixed in the svn version.
* 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?
* 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
You can remove these using the same technique as above.
For example:
# exclude Qt codecs
a.datas = [x for x in a.datas if not
os.path.dirname(x[0]).endswith("codecs")]
# exclude debug libraries
a.datas = [x for x in a.datas if
x[0].find("_debug") < 0]
Also try printing a.binaries and a.datas to see what else you have.
Glenn
--
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.