Making the module

Run SWIG (preferably in a subdirectory):
swig -python -I.. hw.i
SWIG generates wrapper code in
hw_wrap.c
Compile and link a shared library module:
gcc -I.. -O -I/some/path/include/python2.5 \
    -c ../hw.c hw_wrap.c
gcc -shared -o _hw.so hw.o hw_wrap.o
Note the underscore prefix in _hw.so

previousnexttable of contents