Example code for interfacing with C code from Python using SWIG.
Build the SWIG wrapper using the following shell script:
./build_swig_python_wrapper.sh
Compare the results of a pure Python implementation to that of the SWIG wrapper using:
./test_swig.py
- Pure Python implementation
- fib_python.py
- C implementation
- fibonacci.h/.c
- SWIG
- Interface File
- fibonacci.i
- Distutils script
- setup.py
- Interface File