Extending python with C
Fernando Pérez
fperez528 at yahoo.com
Sun May 19 16:33:07 EDT 2002
James T. Dennis wrote:
>>> You've put together a nice example. Thanks for taking the time to write
>>> this
>>> up. I thought I'd also give an example of how to do the same thing using
>>> weave which allows you to mix C++ directly into Python.
>
> One question about weave; does it require a C compiler at run-time?
> How does weave work? Does it pass the C out to a compiler, (and
> presumably to the set of Python headers and libraries)? Does it save
> the resulting .so file just like Python saves .pyc?
Not just a C compiler, it needs a C++ compiler. I use it undre linux so it's
not an issue, g++ is always around. But weave's developer works under Windows
(mainly, though not exclusively) so I know it will also work under Windows.
But I just don't know what the details there are.
Cheers,
f.
More information about the Python-list
mailing list