# this works for python 2 or 3 directly.  To build, do:
#
# python setup.py build_ext --inplace

from numpy.distutils.core import setup, Extension

extra_link_args=[]

ext = Extension("interface_f", 
                ["interface_states.f90"])

setup(ext_modules=[ext])

                

add setup.py