Snakefood
sfood -fuq package.py | sfood-target-files
will list the dependencies.
`-f` tells sfood to follow dependencies recursively
`-u` tells sfood to ignore unused imports
`-q` tells sfood to be quiet about debugging information
To filter out modules from the standard library, you could use
sfood -fuq package.py | sfood-filter-stdlib | sfood-target-files
As you've already noted, if there are other directories you'd like ignored, you can also use the sfood -I
flag.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…