Extracting python dependencies automatically
James Bowes
jbowes at redhat.com
Wed Aug 15 14:14:12 UTC 2007
On Wed, Aug 15, 2007 at 04:51:06PM +0300, Panu Matilainen wrote:
>
> Started looking into possibilities of extracting python dependency
> information similarly to perl dependencies...
Cool. This would be nice to have.
> For requires, try to locate any python scripts and modules and for each
> found, run them through python's modulefinder which attempts to figure out
> which modules a script/module uses. Then, based on the filenames gotten
> from modulefinder results, turn them into python(<name>) entries, for
> example:
> [pmatilai at localhost ~]$ rpm -ql createrepo|./pythondeps.py -R
> python(_sqlitecache)
Something wonky is going on here, I think. Nothing should be importing
_sqlitecache besides sqlitecachec, so maybe modulefinder is recursing?
-James
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.fedoraproject.org/pipermail/devel/attachments/20070815/c44d1f62/attachment-0002.bin
More information about the devel
mailing list