How to derive import dependency structure
Skip Montanaro
skip at pobox.com
Fri Sep 21 13:53:10 EDT 2001
>> Sounds like make dependencies to me:
>>
>> A.data : B.py A.py
>> python B.py # writes A.data by side effect
Harald> Of course, but the point is how to generate makefile from the
Harald> python sources.
*That* sounds like a job for makedepend or something similar. Shouldn't be
too hard to write using a grep type model. Alternatively you could probably
write something more robust using the parser module. Take a look at the
"Information Discovery" example:
http://www.python.org/doc/current/lib/node467.html
--
Skip Montanaro (skip at pobox.com)
http://www.mojam.com/
http://www.musi-cal.com/
More information about the Python-list
mailing list