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

David M. Cooke cookedm at physics.mcmaster.ca
Tue Aug 8 17:11:21 EDT 2006


On Mon, 07 Aug 2006 12:36:03 -0500
Robert Kern <robert.kern at 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 at physics.mcmaster.ca



More information about the SciPy-User mailing list