from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
def cython_ext (name, files, **opts) :
return Extension(name, files, include_dirs=['inc'], **opts)
setup(
cmdclass = {'build_ext': build_ext},
ext_modules = [
cython_ext("libc", ["libc.pyx"]),
cython_ext("py", ["py.pyx"]),
cython_ext("socket.addr", ["socket/addr.pyx"]),
cython_ext("socket.sock", ["socket/sock.pyx"]),
cython_ext("sctp.sock", ["sctp/sock.pyx"], libraries=['sctp']),
cython_ext("sctp.constants", ["sctp/constants.pyx"]),
]
)