weave: how to give code to someone w/o compiler
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
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. As I'm not that familiar, this could be just hear-say. Travis
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. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco
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
"Sebastian" == Sebastian Haase <haase@msg.ucsf.edu> writes:
>> The types of the inputs are also taken into account. Sebastian> Thanks for the info - what file do I need to distribute Sebastian> along with .py file ? where do I find it ? and where Sebastian> does it need to go ? Can I put a compiled file into the Sebastian> same directory as my .py file !? Sebastian> I just discovered (on my linux box) Sebastian> /tmp/haase/python24_intermediate/compiler_cae5f1e251cd037a19f0234c558d6f0e Sebastian> !? You can make weave generate an extension module of your choosing. Look at examples/fibonacci.py which builds a fibonacci_ext.cpp/fibonacci_ext.so pair in the current directory. cheers, prabhu
On Mon, 07 Aug 2006 12:36:03 -0500 Robert Kern <robert.kern@gmail.com> 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.
And (to be pedantic :) the version the numpy API. -- |>|\/|< /--------------------------------------------------------------------------\ |David M. Cooke http://arbutus.physics.mcmaster.ca/dmc/ |cookedm@physics.mcmaster.ca
participants (5)
-
David M. Cooke -
Prabhu Ramachandran -
Robert Kern -
Sebastian Haase -
Travis N. Vaught