I have written a new modulefinder based on importlib. It is not a refactoring of the old one, so it is no plug-in replacement. Instead it has some new features:
- Better logging output
- collects dependencies (self._depgraph maps module names to callers)
- when run as script, the command line syntax are easier to understand (although parsing is still done by getopt; argparse would be event better)
- The Module proxies that modulefinder collects give better access to the module's attributes, including the byte code
It is not yet tested in the wild but I will use it for the Python3 py2exe implementation.
If anyone wants to take a look the current version is here:
http://code.google.com/p/ctypes-stuff/source/browse/trunk/mf/py2exe/mf3.py |