On Monday 07 August 2006 10:36, Robert Kern wrote:
Travis N. Vaught wrote:
Sebastian Haase wrote:
Hi, I just starting to use weave - it seems to be the best thing since sliced bread ... First I have two questions: a) Is it possible to distribute modules using weave to other people who might NOT have a C compiler installed ?
b) when I (or someone who does not have a C compiler !) change parts of that module that should not require a recompiling of the C part - is weave smart enough to recognise this ?
Thanks, Sebastian Haase
It's my understanding that a re-compile is triggered by a mismatch to a MD5 generated on the C string that is to be compiled and the cached MD5 for the expression. This would mean that only changes to that string would force a re-compile. However, even formatting changes (even to whitespace) in the C string force a recompile.
The types of the inputs are also taken into account.
Thanks for the info - what file do I need to distribute along with .py file ? where do I find it ? and where does it need to go ? Can I put a compiled file into the same directory as my .py file !? I just discovered (on my linux box) /tmp/haase/python24_intermediate/compiler_cae5f1e251cd037a19f0234c558d6f0e !? Thanks, Sebastian Haase