How to derive import dependency structure

Harald Kirsch kirschh at lionbioscience.com
Fri Sep 21 12:28:16 EDT 2001


Skip Montanaro <skip at pobox.com> writes:

>     Harald> Let B.py be imported by A.py which generates --- in a very time
>     Harald> consuming process --- some data structure A.dat.
> 
>     Harald>          import         generate
>     Harald>    B.py --------> A.py ----------> A.data
> 
>     Harald> Currently A.dat is only generated if A.py is newer, but this is
>     Harald> not enough since A.dat must also be generated, if B.py is
>     Harald> changed.
> 
> Sounds like make dependencies to me:
> 
>     A.data : B.py A.py
>         python B.py             # writes A.data by side effect 

Of course, but the point is how to generate makefile from the python
sources. 

  Harald Kirsch

-- 
----------------+------------------------------------------------------
Harald Kirsch   | kirschh at lionbioscience.com | "How old is the epsilon?"
LION bioscience | +49 6221 4038 172          |        -- Paul Erdös
       *** Please do not send me copies of your posts. ***



More information about the Python-list mailing list