On Jul 9, 6:42 pm, Rob Cakebread <[EMAIL PROTECTED]> wrote: > On Jul 9, 7:54 am, [EMAIL PROTECTED] wrote: > <snip> > > > <code> > > > mod = modulefinder.ModuleFinder() > > mod.run_script(path/to/python_script.py) > > mod.report() > > > </code> > > > Mike > > Nope. All of those tools and the code above show *all* imports/ > dependencies, which is way too much information. I just need the > 'external' dependencies, like in the example from pylint I pasted > above. If nothing exists I'll just have to figure out how pylint does > it. >
Isn't it possible to get from modulefinder what it has found and just filter it out according to your rules? This way you are in control and can deicde what is internal/external. ./alex -- .w( the_mindstorm )p. > I'm working on g-pypi which creates ebuilds for Gentoo Linux. For > packages that use setuptools I can get the dependencies easily enough > because of 'install_requires', but for packages that don't, I need > another way to find them. > > Thanks, > Rob -- http://mail.python.org/mailman/listinfo/python-list