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

Prabhu Ramachandran prabhu at aero.iitb.ac.in
Mon Aug 7 14:22:11 CDT 2006


>>>>> "Sebastian" == Sebastian Haase <haase at 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


More information about the SciPy-user mailing list