Tool for finding external dependencies

Alex Popescu the.mindstorm.mailinglist at gmail.com
Mon Jul 9 12:23:00 EDT 2007


On Jul 9, 6:42 pm, Rob Cakebread <gentoo... at gmail.com> wrote:
> On Jul 9, 7:54 am, kyoso... at gmail.com 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





More information about the Python-list mailing list