A build script

Can automate the compile+link process
Can use Python to extract where Python.h resides (needed by any wrapper code)
swig -python -I.. hw.i

root=`python -c 'import sys; print sys.prefix'`
ver=`python -c 'import sys; print sys.version[:3]'`
gcc -O -I.. -I$root/include/python$ver -c ../hw.c hw_wrap.c
gcc -shared -o _hw.so hw.o hw_wrap.o

python -c "import hw" # test
(these statements are found in make_module_1.sh)
The module consists of two files: hw.py (which loads) _hw.so

previousnexttable of contents