Source

Numpy Toy Box / convsrc / setup.py

Full commit
from numpy.distutils.core import setup, Extension

modname = 'convsrc'

module1 = Extension(
    modname,
    sources = [modname + 'module.c.src'],
    extra_compile_args = ["-fPIC"],
    ## extra_compile_args = ["-fPIC", "-g", "-traceback"],
)

setup( ext_modules = [module1] )

# compile: python setup.py build_ext -i -f