4 |
4 |
5 def cython_ext (name, files, **opts) : |
5 def cython_ext (name, files, **opts) : |
6 return Extension(name, files, include_dirs=['inc'], **opts) |
6 return Extension(name, files, include_dirs=['inc'], **opts) |
7 |
7 |
8 setup( |
8 setup( |
9 cmdclass = {'build_ext': build_ext}, |
9 name = 'qmsk.net', |
|
10 version = '0.0.1', |
|
11 description = "Python network programming re-invented", |
|
12 author = "Tero Marttila", |
|
13 author_email = "terom@fixme.fi", |
|
14 url = "http://projects.qmsk.net/qmsk.net", |
|
15 |
|
16 # for python code |
|
17 packages = [ |
|
18 'qmsk.net.socket', |
|
19 'qmsk.net.sctp', |
|
20 ], |
|
21 |
|
22 # override build_ext to use Cython |
|
23 cmdclass = {'build_ext': build_ext}, |
|
24 |
|
25 # describe Cython modules |
|
26 ext_package = 'qmsk.net', |
10 ext_modules = [ |
27 ext_modules = [ |
11 cython_ext("libc", ["libc.pyx"]), |
28 cython_ext("libc", ["qmsk/net/libc.pyx"]), |
12 cython_ext("py", ["py.pyx"]), |
29 cython_ext("py", ["qmsk/net/py.pyx"]), |
13 cython_ext("socket.addr", ["socket/addr.pyx"]), |
30 cython_ext("socket.addr", ["qmsk/net/socket/addr.pyx"]), |
14 cython_ext("socket.sock", ["socket/sock.pyx"]), |
31 cython_ext("socket.socket", ["qmsk/net/socket/socket.pyx"]), |
15 cython_ext("sctp.sock", ["sctp/sock.pyx"], libraries=['sctp']), |
32 cython_ext("sctp.sock", ["qmsk/net/sctp/sock.pyx"], libraries=['sctp']), |
16 cython_ext("sctp.constants", ["sctp/constants.pyx"]), |
33 cython_ext("sctp.constants", ["qmsk/net/sctp/constants.pyx"]), |
17 ] |
34 ] |
18 ) |
35 ) |
19 |
36 |