Determining win32 dll dependency

Thomas Heller theller at
Mon Aug 15 17:47:42 CEST 2005

Robin Becker <robin at> writes:

> A client requested that I send MSVCR71.DLL along with the rest of an
> application as it wasn't present on his machine.
> That is allowed as
> seems to explicitly allow for this.

For a discussion about the rights (or not) to distribute msvcr71.dll you
could read the py2exe-users lists archive.

> I would like to automate my build script to include this file, but
> cannot think of an automatic way to determine which of msvcr70/71.dlls
> .... are needed.

py2exe contains an extension module that determines binary dependencies:

>>> from py2exe.py2exe_util import depends
>>> impport pprint
>>> pprint.pprint(depends(r"c:\windows\system32\notepad.exe").keys())


More information about the Python-list mailing list