OLD | NEW |
| (Empty) |
1 from distutils.core import setup | |
2 from distutils.extension import Extension | |
3 try: | |
4 from Pyrex.Distutils import build_ext | |
5 # pyrex is available | |
6 setup( | |
7 name = 'cfsupport', | |
8 version = '0.4', | |
9 description = "Enough CoreFoundation wrappers to deal with CFRunLoop", | |
10 long_description = "Pythonic wrappers for pieces of Apple's CoreFoundati
on API's that are not otherwise wrapped by MacPython.\nPrimarily useful for deal
ing with CFRunLoop.", | |
11 maintainer = 'Bob Ippolito', | |
12 maintainer_email = 'bob@redivi.com', | |
13 license = 'Python', | |
14 platforms = ['Mac OSX'], | |
15 keywords = ['CoreFoundation', 'CFRunLoop', 'Cocoa', 'GUI'], | |
16 ext_modules=[ | |
17 Extension( | |
18 'cfsupport', | |
19 ['cfsupport.pyx'], | |
20 extra_link_args=[ | |
21 '-framework','CoreFoundation', | |
22 '-framework','CoreServices', | |
23 ], | |
24 ), | |
25 ], | |
26 cmdclass = {'build_ext': build_ext} | |
27 ) | |
28 except ImportError: | |
29 # pyrex is not available, use existing .c | |
30 setup( | |
31 name = 'cfsupport', | |
32 version = '0.4', | |
33 description = "Enough CoreFoundation wrappers to deal with CFRunLoop", | |
34 long_description = "Pythonic wrappers for pieces of Apple's CoreFoundati
on API's that are not otherwise wrapped by MacPython.\nPrimarily useful for deal
ing with CFRunLoop.", | |
35 maintainer = 'Bob Ippolito', | |
36 maintainer_email = 'bob@redivi.com', | |
37 license = 'Python', | |
38 platforms = ['Mac OSX'], | |
39 keywords = ['CoreFoundation', 'CFRunLoop', 'Cocoa', 'GUI'], | |
40 ext_modules=[ | |
41 Extension( | |
42 'cfsupport', | |
43 ['cfsupport.c'], | |
44 extra_link_args=[ | |
45 '-framework','CoreFoundation', | |
46 '-framework','CoreServices', | |
47 ], | |
48 ), | |
49 ], | |
50 ) | |
OLD | NEW |