Eli Bendersky schrieb:
> Hello,
> 
> I've always assumed that py2exe uses modulefinder (or rather a
> self-written version thereof) to find the modules used by the packaged
> application. However, I see that py2exe manages to find things that
> modulefinder doesn't find, such as DLLs. For example, when packaging
> an app that uses wxPython, modulefinder finds only the relevant .py
> and .pyd / .pyo files, while py2exe also finds all the wx DLLs.
> What kind of additional searches does py2exe do to find all the
> required infromation?

See the code starting near line 360 in
http://py2exe.cvs.sourceforge.net/py2exe/py2exe/source/py2exe_util.c?view=markup

For each extension module, the depends() function in the py2exe_util module is 
called,
which in turn calls the Windows BindImageEx api function.  This function calls
a callback (StatusRoutine) with dll names that the extension depends on.

Thomas

_______________________________________________
Distutils-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/distutils-sig

Reply via email to