~ntt-pf-lab/nova/monkey_patch_notification

« back to all changes in this revision

Viewing changes to vendor/Twisted-10.0.0/twisted/internet/cfsupport/setup.py

  • Committer: Jesse Andrews
  • Date: 2010-05-28 06:05:26 UTC
  • Revision ID: git-v1:bf6e6e718cdc7488e2da87b21e258ccc065fe499
initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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 CoreFoundation API's that are not otherwise wrapped by MacPython.\nPrimarily useful for dealing 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 CoreFoundation API's that are not otherwise wrapped by MacPython.\nPrimarily useful for dealing 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
    )