setup.py
author Tero Marttila <terom@fixme.fi>
Sun, 16 Aug 2009 18:29:55 +0300
changeset 6 10bd48c9b6ce
parent 5 59bed837c265
child 7 74fde84264b1
permissions -rw-r--r--
socket type, mass rename
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"]),
    ]
)