[SciPy-user] weave: how to give code to someone w/o compiler

Robert Kern robert.kern at gmail.com
Mon Aug 7 12:36:03 CDT 2006


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


More information about the SciPy-user mailing list