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-- |
1
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
1 |
from distutils.core import setup |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
2 |
from distutils.extension import Extension |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
3 |
from Cython.Distutils import build_ext |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
4 |
|
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
5 |
def cython_ext (name, files, **opts) : |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
6 |
return Extension(name, files, include_dirs=['inc'], **opts) |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
7 |
|
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
8 |
setup( |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
9 |
cmdclass = {'build_ext': build_ext}, |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
10 |
ext_modules = [ |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
11 |
cython_ext("libc", ["libc.pyx"]), |
5 | 12 |
cython_ext("py", ["py.pyx"]), |
6 | 13 |
cython_ext("socket.addr", ["socket/addr.pyx"]), |
14 |
cython_ext("socket.sock", ["socket/sock.pyx"]), |
|
1
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
15 |
cython_ext("sctp.sock", ["sctp/sock.pyx"], libraries=['sctp']), |
5 | 16 |
cython_ext("sctp.constants", ["sctp/constants.pyx"]), |
1
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
17 |
] |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
18 |
) |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
19 |