from numpy.distutils.core import setup, Extension
setup(name='AB', ext_modules=[Extension('A', ['A.c']), Extension('B', ['B.c'])]
    )
How can I have a global C/C++ variable that is shared between Python C/C++ extensions?